Methods#
createPayment#
This function lets you start a MercadoPago Checkout Flow Activity or UI Controller depending on the platform that is running.
Parameters#
| Name | Type | Description |
|---|
options | PaymentOptions | An object which contains the payment configuration. |
Return value#
| Name | Type | Description |
|---|
payment | Payment | An object which contains the payment information. |
Type Definitions#
PaymentOptions#
options: PaymentOptionspublicKey: string - Key generated from your account to launch a checkoutpreferenceId: string - ID of the payment preferencelanguage: SupportedLanguages - Sets the language for the checkout, IOS onlyadvancedOptions: AdvancedOptionsamountRowEnabled: boolean - Boolean flag to determine if amount row should be enabledbankDealsEnabled: boolean - Boolean flag to determine if bank deals should be enabledproductId: string - Custom product ID
trackingOptions: TrackingOptionssessionId: string - Session ID for checkout tracking, Android only
Payment#
payment: Paymentid: string - ID of the paymentstatus: PaymentStatus - Status of the paymentstatusDetail: string - Status of the payment with more detailsoperationType: string | null - The Type of operationdescription: string | null - The description of the paymentcurrencyId: string | null - The ID of the currencypaymentMethodId: string | null - The ID of the payment methodpaymentTypeId: string | null - The ID of the payment typeissuerId: string | null - The ID of the card issuerinstallments: number | null - The amount of installmentscaptured: boolean | null - If the payment is capturedliveMode: boolean | null - If the payment is in live modetransactionAmount: number | null - The amount of the transaction