Payment methods
Use this demo to list enabled payment methods and create an APM payment such as OXXO Pay or SPEI:
- The demo loads enabled methods with
getPaymentMethods()when it starts. - Select an enabled method from the list.
- Click Deposit to call
pay()withpayment_method.typeset to the selected method code and the optionalidempotency_key. - Reconcile asynchronous methods with your backend/webhooks before fulfillment.
getPaymentMethods() is optional. If you already know which method you want to offer, you can pass it directly to pay(), for example { type: 'spei' } or { type: 'oxxopay' }.
Payment methods
Use the browser CDN build directly. Good for validating the APM contract without a framework.
Last updated on