Sign up
Stripe provides self-service sign-up for sandbox accounts. To sign up for an account, visit the sign-up page.Credentials
When setting up the OXXO via Stripe connection in the dashboard, the following credentials can be configured:Secret key
A Stripe Secret key can be found in the Stripe Dashboard within Developer Settings under API keys.Webhook secret
A Stripe Webhook Secret can be found in the Stripe Dashboard within Developer Settings under Webhooks once webhooks have been configured (see Webhooks below).Stripe connected account (when applicable)
If using Stripe Connect, you can set the Stripe Account ID of the connected account that you intend to use for all transactions through the connection.Approval URL (optional)
By default, the connector returns an approval URL that redirects buyers to a Stripe-hosted page with instructions for completing an OXXO cash payment. If required, you can set a different approval URL here which allows you to build your own page for showing the OXXO voucher 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
OXXO payments are completed asynchronously, so you must configure webhooks to update the status of transactions. Webhooks are configured in the Stripe Dashboard within Developer Settings under Webhooks. The OXXO connector relies on the following Stripe webhook event:payment_intent.succeeded
Integration
The default integration for OXXO via Stripe uses a redirect to payments page hosted by Stripe.Redirect integration
Start by creating a new transaction with the following required fields.POST /transactions
payment_method.approval_url and the transaction will be in a
processing state.
approval_url (open in a browser or Webview) where they see an OXXO voucher and instructions to complete the cash payment.
Once the buyer completes the cash payment at an OXXO location, 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 the OXXO voucher, you can include anintegration_client parameter set to web, ios or android when creating a new transaction.
session_token which can be used to get the session data for the transaction, which can be used to build a custom page for displaying the OXXO voucher.