This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void submit() { | |
| // Envia la información a tu servidor como desees | |
| Map<String, Object> preferenceParams = new HashMap<String, Object>(); | |
| // Identifica qué estas cobrando | |
| preferenceParams.put("item_id", "123456"); | |
| // Envia la info a tu servidor para crear la preferencia | |
| MerchantServer.createPreference(activity, TU_URL_BASE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // RESOLVER ESTE TEMA | |
| android { | |
| lintOptions { | |
| abortOnError false | |
| } | |
| } | |
| // SOLO PARA TEST | |
| repositories { | |
| maven { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "MercadoPagoSDK/MercadoPagoSDK-Swift.h" | |
| MercadoPago *mp = [[MercadoPago alloc] initWithPublicKey:@"444a9ef5-8a6b-429f-abdf-587639155d88"]; | |
| Identification *identification = [[Identification alloc] init]; | |
| identification.type = @"DNI"; | |
| identification.number = @"12345678"; | |
| Cardholder *cardholder = [[Cardholder alloc] init]; | |
| cardholder.identification = identification; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import CoreData | |
| import MercadoPagoSDK | |
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| var nav: UINavigationController? |
NewerOlder