Onerway
Payment methods

OXXO PAY

Onerway does not currently support the payment-method code OXXOPAY. Do not use it for new payments.

Current support status

Onerway currently does not support the payment-method code OXXOPAY. Do not use it for new payments. All integration instructions below are historical reference for existing records and do not indicate current availability.

When reviewing an existing record, retain its original payment-method code, Onerway paymentId and transactionId, and your order reference. To select another method, check available payment methods for the order.

Basic information

This guide covers one-time OXXO PAY payments through the Direct API or Checkout for enabled configurations in the 🇲🇽 MX market, with orders in MXN. Customers obtain payment instructions from the hosted payment page and complete the payment separately.

The lpmsInfo.lpmsType value is OXXOPAY. OXXOPAY and OXXO are separate identifiers; use the one enabled for this integration. Before using another market or order currency, confirm the enabled scope for your merchant account and application with Onerway, then check the current order with List available payment methods.

Before you begin

Complete Setup and confirm that OXXO PAY is enabled. Also confirm transaction limits, the applicable payment validity period, settlement arrangements, and the test procedure. For amount formatting, see Currency and amount validation.

For this flow, collect the customer’s billing name, email, phone, actual country, and full address before creating the payment. Confirm any identity information required by your enabled configuration with Onerway. Supply shipping details according to the API conditions. Configure your server notification URL and customer return URL, and store the mapping between your order and the Onerway identifiers.

Supply the collected firstName, lastName, email, country, phoneCountryCode, phone, address, city, province, street, number, and postalCode in billingInformation. Supply the full billing address in address; the separate address fields do not replace it in this flow. If your enabled configuration requires an identity identifier, confirm its accepted type and format with Onerway and supply it in identityNumber. Follow the public API format: phoneCountryCode contains digits without +, and phone contains the local number without its country code. Use street for the street name, number for the house or building number, and province for the ISO 3166-2 subdivision code. This guide supplies these details in advance; it does not rely on the payment page collecting missing information. The billing and shipping objects must still satisfy the API field conditions. The customer’s actual billing country must be MX for this flow; do not change it to select a payment route.

Start the payment

Direct API

  1. Check List available payment methods for the current order. After the customer selects this method, call Create direct transaction from your server with productType=LPMS, subProductType=DIRECT, txnType=SALE, and paymentMode=WEB. Set lpmsType=OXXOPAY in lpmsInfo, encoded as a JSON string.
  2. Supply the customer details prepared above in billingInformation, and follow the API requirements for shippingInformation. Encode both as JSON strings. Include products, notification and return URLs, and merchant-collected end-user IP, browser, and device information in txnOrderMsg. Keep product and order currencies consistent, with product amounts, discounts, and shipping fees adding up to orderAmount.
    Select the request example “Redirect local payment request (illustrative)”. It uses Bancontact / BE / EUR to show the shared structure. Replace the method with OXXOPAY, use MXN for this flow, and supply the actual order and all billing details listed above, including the actual MX country and any identity identifier required by your enabled configuration. The example amount does not establish a transaction limit.
  3. Store the returned paymentId and transactionId. When status=R and actionType=RedirectURL, redirect the customer’s browser to redirectUrl. The response example “Redirect local payment response (illustrative)” shows this shape. For other actions or states, follow Local payment integration. Do not repeatedly create the same order while waiting.
  4. The provider’s page guides the customer through payment. When the customer returns to your site, display the result retrieved from your server. See Request signing for authentication.

Checkout

When locking Checkout to this method, first call List available payment methods for the current order and confirm that the method is returned. When Checkout displays all available methods, Onerway performs this filtering.

  1. On your server, call Create checkout payment with productType=ALL, subProductType=DIRECT, and txnType=SALE. To show only OXXO PAY, set lpmsInfo.lpmsType to OXXOPAY, sending lpmsInfo as a JSON string. If you omit lpmsInfo, the customer chooses from the methods available for the order.
  2. Supply the required billing, shipping, product, return URL, and notification URL fields. Encode billingInformation and shippingInformation as JSON strings. Keep product and order currencies consistent, and ensure that product amounts, discount entries, and shipping fees add up to orderAmount.
    Select the request example “Unified Checkout with all available payment methods”. Replace the order and customer details, use MXN for this flow, supply all billing details listed above, and add this method’s lpmsInfo if you want to select only OXXO PAY. Remove the example’s cardInfo object for this flow. The example shows the shared Checkout request structure.
  3. Select the response example “Unified Checkout session created”. Store the returned paymentId and transactionId against your order, then redirect the customer’s browser to redirectUrl. The initial status=U means that payment has not been completed.
  4. Checkout handles the payment page and subsequent customer interaction. When the customer reaches returnUrl, display the result retrieved from your server. For signing, redirects, and return handling, see Checkout integration.

Customer actions and final result

Customers follow the current payment page’s instructions to check or provide any additional details and obtain a payment voucher. They use the reference and amount on that voucher to pay in cash at an OXXO store. Use the voucher generated for the current order; your application does not generate the payment reference.

Customers should check the amount and any payment deadline on the current voucher. Creating a voucher or returning to your site does not confirm receipt of funds. Keep the order awaiting payment until your server confirms the result, and do not promise immediate confirmation after the customer pays.

Process the order using a signature-verified payment result webhook. If no notification has arrived or you need to check the result, call Query payments with the stored paymentId. Fulfill the order only after your server confirms a successful payment. For verification, acknowledgement, idempotency, and query fallback, see Webhooks.

Refunds and disputes

Confirm the refund capabilities, restrictions, and dispute process applicable to your merchant with Onerway. If refunds are enabled, follow Refunds.

Testing and go-live

Confirm the test environment and available OXXO PAY test procedure with Onerway, then follow Sandbox testing:

  1. Test each path you use with MXN, the customer’s actual MX billing country, and the details described above. For the Direct API, check that the returned redirect opens the payment page. For Checkout, check that the first redirectUrl opens Checkout and OXXO PAY is available before proceeding to the payment page.
  2. Check any requested customer details, the payment instructions, the amount, and any displayed deadline. Complete the agreed voucher-payment test and verify the result on your server. Merely generating a voucher does not pass the successful-payment check.
  3. Test an unpaid voucher and a return to your site before payment. If a deadline is displayed, also test the agreed expiry handling. Verify query fallback when no notification has arrived and idempotent handling of duplicate notifications.
  4. For go-live acceptance, retain the notification and acknowledgement for the same order. Query the payment status and check that it matches the notification. Check production enablement, notification and return URLs, limits, and validity periods. Test refunds separately if they are enabled.