public class MercadoPagoServices
extends java.lang.Object
Constructor and Description |
---|
MercadoPagoServices(android.content.Context context,
java.lang.String publicKey,
java.lang.String privateKey) |
Modifier and Type | Method and Description |
---|---|
void |
cloneToken(java.lang.String tokenId,
Callback<Token> callback) |
void |
createPayment(java.lang.String transactionId,
java.util.Map<java.lang.String,java.lang.Object> paymentData,
java.util.Map<java.lang.String,java.lang.String> query,
Callback<Payment> callback) |
void |
createToken(CardToken cardToken,
Callback<Token> callback) |
void |
createToken(SavedCardToken savedCardToken,
Callback<Token> callback) |
void |
createToken(SavedESCCardToken savedESCCardToken,
Callback<Token> callback) |
void |
getBankDeals(Callback<java.util.List<BankDeal>> callback) |
void |
getCheckoutPreference(java.lang.String checkoutPreferenceId,
Callback<CheckoutPreference> callback) |
void |
getCodeDiscount(java.lang.String amount,
java.lang.String payerEmail,
java.lang.String couponCode,
Callback<Discount> callback) |
void |
getDirectDiscount(java.lang.String amount,
java.lang.String payerEmail,
Callback<Discount> callback) |
void |
getIdentificationTypes(Callback<java.util.List<IdentificationType>> callback) |
void |
getIdentificationTypes(java.lang.String accessToken,
Callback<java.util.List<IdentificationType>> callback) |
void |
getInstallments(java.lang.String bin,
java.math.BigDecimal amount,
java.lang.Long issuerId,
java.lang.String paymentMethodId,
java.lang.Integer differentialPricingId,
Callback<java.util.List<Installment>> callback) |
void |
getInstructions(java.lang.Long paymentId,
java.lang.String paymentTypeId,
Callback<Instructions> callback) |
void |
getIssuers(java.lang.String paymentMethodId,
java.lang.String bin,
Callback<java.util.List<Issuer>> callback) |
void |
getPaymentMethods(Callback<java.util.List<PaymentMethod>> callback) |
void |
getPaymentMethodSearch(java.math.BigDecimal amount,
java.util.List<java.lang.String> excludedPaymentTypes,
java.util.List<java.lang.String> excludedPaymentMethods,
java.util.List<java.lang.String> cardsWithEsc,
java.util.List<java.lang.String> supportedPlugins,
Payer payer,
Site site,
java.lang.Integer differentialPricing,
Callback<PaymentMethodSearch> callback)
|
void |
getPaymentMethodSearch(java.math.BigDecimal amount,
java.util.List<java.lang.String> excludedPaymentTypes,
java.util.List<java.lang.String> excludedPaymentMethods,
java.util.List<java.lang.String> cardsWithEsc,
java.util.List<java.lang.String> supportedPlugins,
Site site,
java.lang.Integer differentialPricing,
java.lang.Integer defaultInstallments,
boolean expressEnabled,
Callback<PaymentMethodSearch> callback) |
void |
putSecurityCode(java.lang.String tokenId,
SecurityCodeIntent securityCodeIntent,
Callback<Token> callback) |
public MercadoPagoServices(@NonNull android.content.Context context, @NonNull java.lang.String publicKey, @Nullable java.lang.String privateKey)
context
- context to obtain connection interceptor and cache.publicKey
- merchant public key / collector public key
credentialsprivateKey
- user private key / access_token if you have it.public void getCheckoutPreference(java.lang.String checkoutPreferenceId, Callback<CheckoutPreference> callback)
public void getInstructions(java.lang.Long paymentId, java.lang.String paymentTypeId, Callback<Instructions> callback)
@Deprecated public void getPaymentMethodSearch(java.math.BigDecimal amount, java.util.List<java.lang.String> excludedPaymentTypes, java.util.List<java.lang.String> excludedPaymentMethods, java.util.List<java.lang.String> cardsWithEsc, java.util.List<java.lang.String> supportedPlugins, Payer payer, Site site, @Nullable java.lang.Integer differentialPricing, Callback<PaymentMethodSearch> callback)
getPaymentMethodSearch(BigDecimal, List, List, List, List, Site, Integer, Integer, boolean, Callback)
amount
- excludedPaymentTypes
- excludedPaymentMethods
- cardsWithEsc
- supportedPlugins
- payer
- site
- differentialPricing
- callback
- public void getPaymentMethodSearch(java.math.BigDecimal amount, java.util.List<java.lang.String> excludedPaymentTypes, java.util.List<java.lang.String> excludedPaymentMethods, java.util.List<java.lang.String> cardsWithEsc, java.util.List<java.lang.String> supportedPlugins, Site site, @Nullable java.lang.Integer differentialPricing, @Nullable java.lang.Integer defaultInstallments, boolean expressEnabled, Callback<PaymentMethodSearch> callback)
amount
- amount to payexcludedPaymentTypes
- excludedPaymentMethods
- cardsWithEsc
- supportedPlugins
- site
- differentialPricing
- defaultInstallments
- expressEnabled
- if your preference is compatible with express checkout.callback
- public void createToken(SavedCardToken savedCardToken, Callback<Token> callback)
public void createToken(SavedESCCardToken savedESCCardToken, Callback<Token> callback)
public void putSecurityCode(java.lang.String tokenId, SecurityCodeIntent securityCodeIntent, Callback<Token> callback)
public void getIdentificationTypes(Callback<java.util.List<IdentificationType>> callback)
public void getIdentificationTypes(java.lang.String accessToken, Callback<java.util.List<IdentificationType>> callback)
public void getInstallments(java.lang.String bin, java.math.BigDecimal amount, java.lang.Long issuerId, java.lang.String paymentMethodId, @Nullable java.lang.Integer differentialPricingId, Callback<java.util.List<Installment>> callback)
public void getIssuers(java.lang.String paymentMethodId, java.lang.String bin, Callback<java.util.List<Issuer>> callback)
public void getPaymentMethods(Callback<java.util.List<PaymentMethod>> callback)
public void getDirectDiscount(java.lang.String amount, java.lang.String payerEmail, Callback<Discount> callback)
public void getCodeDiscount(java.lang.String amount, java.lang.String payerEmail, java.lang.String couponCode, Callback<Discount> callback)