Supported countries and currencies
Stripe supports transactions from buyers inMX.
Stripe supports processing payments in MXN.
Follow the Stripe setup instructions before configuring SPEI.
Configuration
For shared APM credentials, see Stripe APM credentials.Approval URL (optional)
By default, the connector returns an approval URL that redirects buyers to a Stripe-hosted page with instructions for completing a bank transfer. If required, you can set a different approval URL here which allows you to build your own page for showing bank transfer instructions to buyers. When set, the Approval URL is returned with a Session Token appended as a query parameter namedtoken. This Session Token can be used with the Transaction Session API to retrieve the details required to build your own page.
Webhooks
SPEI payments and refunds are completed asynchronously, so webhooks must be configured to update the status of transactions. Webhooks are configured in the Stripe Dashboard within Developer Settings under Webhooks. The SPEI connector relies on the following Stripe webhooks:payment_intent.succeededpayment_intent.partially_fundedpayment_intent.canceledcharge.refund.updated
Integration
The default integration for SPEI via Stripe uses a redirect to a payments page hosted by Stripe.Redirect integration
Start by creating a new transaction with the following required fields.payment_method.approval_url and the status is set to processing.
approval_url (open in a browser or Webview), where they see instructions for completing a bank transfer.
Once the buyer completes a bank transfer, the transaction progresses to a capture_succeeded state in response to a webhook from Stripe.
Direct integration
If you intend to use your own hosted page for presenting the buyer with bank transfer instructions, you can include anintegration_client parameter set to web, ios or android when creating a new transaction.
session_token. You use this token with the session endpoint to retrieve the session data for the transaction and build a custom page that displays the bank transfer instructions.