# 7-Eleven

> Accept one-time 7-Eleven cash payments in the Philippines through the Direct API or Checkout, supply customer details in advance, and confirm receipt on your server.

## Basic information

Customers take the payment voucher to a store to pay in cash.

- Integration paths: [Direct API](/payments/online-payments/api), [Checkout](/payments/online-payments/checkout)
- Transaction type: One-time payment
- `lpmsInfo.lpmsType`: `ELEVEN`

| Customer country/region | Order currency |
| --- | --- |
| 🇵🇭 PH | PHP |

The customer country/region is the `billingInformation.country` value in the payment request.

This guide covers enabled 7-Eleven cash-payment configurations. It applies when you have collected the customer’s billing name, email, Philippine billing country, and the required identity number before creating the payment, as described in [Before you begin](#before-you-begin). 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](/payments/api-reference/endpoints/list-available-payment-methods).

<note>

Before you apply to enable 7-Eleven, contact Onerway to confirm that it can be enabled for your merchant account and application.

</note>

## Before you begin

Complete [Setup](/payments/get-started/setup) and confirm that 7-Eleven 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](/payments/get-started/currency-and-amount).

Confirm the identity document type and format required by your enabled configuration with Onerway. Collect the billing name, email, identity number, phone, and address details for this PH flow before creating the payment. Supply shipping information according to the API conditions. Confirm that your enabled configuration uses the hosted payment-page flow described here. Configure your notification and return URLs, and store the mapping between your order and the Onerway identifiers.

Supply the collected `firstName`, `lastName`, `email`, `identityNumber`, `phoneCountryCode`, `phone`, `city`, `province`, `postalCode`, `street`, and `number` in `billingInformation`. The customer’s actual billing country must be PH; do not change `country` to select a payment route. Supply the identity number as a string in the format agreed for this configuration. 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. Follow the API conditions for other fields, including `address` and `birthDate`, and for shipping information. This flow supplies customer details in advance and does not rely on the payment page collecting missing identity information.

## Start the payment

### Direct API

1. Check [List available payment methods](/payments/api-reference/endpoints/list-available-payment-methods) for the current order. After the customer selects this method, call [Create direct transaction](/payments/api-reference/endpoints/direct-create-transaction) from your server with `productType=LPMS`, `subProductType=DIRECT`, `txnType=SALE`, and `paymentMode=WEB`. Set `lpmsType=ELEVEN` in [`lpmsInfo`](/payments/api-reference/endpoints/direct-create-transaction#request-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`](/payments/api-reference/endpoints/direct-create-transaction#request-txnOrderMsg). Keep product and order currencies consistent, with product amounts, discounts, and shipping fees adding up to `orderAmount`.<br />Select the request example “Redirect local payment request (illustrative)”. It uses Bancontact / BE / EUR to show the shared structure. Replace the method with `ELEVEN`, use PHP for this flow, and supply the actual order and all billing details listed above, including the actual PH country and the agreed identity number. 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](/payments/online-payments/payment-methods/local-payment-methods#handle-the-customer-action). 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](/payments/get-started/request-signing) for authentication.

### Checkout

When locking Checkout to this method, first call [List available payment methods](/payments/api-reference/endpoints/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](/payments/api-reference/endpoints/create-checkout-payment) with `productType=ALL`, `subProductType=DIRECT`, and `txnType=SALE`. To show only 7-Eleven, set [`lpmsInfo.lpmsType`](/payments/api-reference/endpoints/create-checkout-payment#request-lpmsInfo) to `ELEVEN`, 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`](/payments/api-reference/endpoints/create-checkout-payment#request-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`.<br />Select the request example “Unified Checkout with all available payment methods”. Replace the order and customer details, use PHP for this flow, supply the billing details listed above, and add this method’s `lpmsInfo` if you want to select only 7-Eleven. 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](/payments/online-payments/checkout).

## Customer actions and final result

Customers review the voucher on the hosted payment page, including the amount, payment code or barcode, payment deadline, and store instructions. They save or print the voucher as directed, visit a 7-Eleven store before the displayed deadline, and present the code or barcode to the cashier to complete the cash payment. Use the instructions and payment details shown for the current order; your application does not create its own payment code or barcode.

Receiving or downloading a voucher, presenting a barcode, or returning to your site does not confirm receipt of funds. Keep the order awaiting payment until your server confirms the Onerway result. Do not promise immediate confirmation after the customer pays at the store.

Process the order using a signature-verified [payment result webhook](/payments/api-reference/webhooks/payment-result). If no notification has arrived or you need to check the result, call [Query payments](/payments/api-reference/endpoints/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](/payments/get-started/webhooks).

## Refunds and disputes

Confirm the refund capabilities, restrictions, and dispute process applicable to your merchant with Onerway. If refunds are enabled, follow [Refunds](/payments/online-payments/scenarios/refunds).

## Testing and go-live

Confirm the test environment and available 7-Eleven test procedure with Onerway, then follow [Sandbox testing](/payments/get-started/testing):

1. Test each path you use with PHP, the customer’s actual PH 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 7-Eleven is available before proceeding to the payment page.
2. Check the voucher’s amount, code or barcode, displayed deadline, and store instructions. Complete the agreed cash-payment test and confirm the result on your server. Generating a voucher alone does not pass the successful-payment check.
3. Test a customer leaving without paying, returning before receipt is confirmed, and the agreed handling of an expired voucher. 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.
