public class MercadoPagoCheckout
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MercadoPagoCheckout.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTRA_ERROR |
static java.lang.String |
EXTRA_PAYMENT_RESULT |
static int |
PAYMENT_RESULT_CODE |
Modifier and Type | Method and Description |
---|---|
AdvancedConfiguration |
getAdvancedConfiguration() |
CheckoutPreference |
getCheckoutPreference() |
PaymentConfiguration |
getPaymentConfiguration() |
java.lang.String |
getPreferenceId() |
java.lang.String |
getPrivateKey() |
java.lang.String |
getPublicKey() |
void |
startPayment(android.content.Context context,
int requestCode)
Starts checkout experience.
|
public static final int PAYMENT_RESULT_CODE
public static final java.lang.String EXTRA_PAYMENT_RESULT
public static final java.lang.String EXTRA_ERROR
public void startPayment(@NonNull android.content.Context context, int requestCode)
PaymentResult
object that
will be returned on Activity.onActivityResult(int, int, Intent)
if success or
MercadoPagoError
will return on Activity.onActivityResult(int, int, Intent)
context
- context needed to start checkout.requestCode
- it's the number that identifies the checkout flow request for
Activity.onActivityResult(int, int, Intent)
@NonNull public AdvancedConfiguration getAdvancedConfiguration()
@NonNull public java.lang.String getPublicKey()
@Nullable public java.lang.String getPreferenceId()
@Nullable public CheckoutPreference getCheckoutPreference()
@NonNull public java.lang.String getPrivateKey()
@NonNull public PaymentConfiguration getPaymentConfiguration()