Onerway
Payment methods

Local payment integration

How to find which methods Onerway supports and which are available for an order, the differences across integration methods, the three customer actions and delayed settlement, method-specific parameters, subscription-capable methods, and the extra requirements of some regional methods.

This page covers the shared Onerway integration flow for local payment options, including bank transfers and online banking, virtual accounts, e-wallets, QR codes, convenience stores and cash vouchers, prepaid cards, carrier billing, and buy now pay later. They share the create-transaction API with card payment; customers may complete payment through a redirect, a QR code, or a client SDK, and some methods do not settle instantly.

All three integration methods can use a local payment method: Checkout and the Web SDK display the available methods and handle the customer action for you, while with the Direct API you select the method and handle it yourself. A local payment method does not support pre-authorization (txnType=AUTH).

See the Payment methods overview for method-specific guides and API identifiers. This page covers the shared flow; each method guide adds its setup and customer actions.

Query available payment methods

The API identifiers for payment methods are documented in the lpmsInfo.lpmsType field. An identifier in this field does not establish current availability; check the corresponding method guide and query availability for the order. Two of those values, ApplePay and GooglePay, are wallets — see Apple Pay and Google Pay for those.

Which methods are actually available for a given order depends on your merchant configuration, the customer's country or region, the currency, and the amount, so take it from the response of List available payment methods: do not decide availability by currency alone. Each returned record identifies its method in data[].paymentMethod, and lpmsInfo.lpmsType takes the same value when you create the transaction. Currency and amount rules are covered in Currency and amount validation.

When you build the method list yourself — with the Direct API, or with Checkout locked to a single method — query before displaying and do not hard-code the list in your front end; the result can be cached and refreshed when your configuration changes. When Checkout or the Web SDK displays every available method, Onerway filters them for you and you do not need to call it.

For per-transaction limits, and for the extra merchant registration or regional requirements that some methods have, contact Onerway support.

Choose an integration method

Integration methodDisplay and selectionKey parameters
CheckoutThe checkout page displays the methods available for the order and the customer chooses; it can also be locked to a single methodSubmit productType=ALL to display every available method; add lpmsInfo.lpmsType to lock to a single method
Web SDKThe SDK displays the available methods on your page and renders QR codes and other presented interfacesproductType=ALL; a local payment method is confirmed by your own button calling confirmPayment()
Direct APIYou build the method list and name the method when creating the transaction, and handle the customer action yourselfThe local payment method scope value of the productType field, lpmsInfo; submit DIRECT in subProductType for one-off payments and SUBSCRIBE for subscriptions

With Checkout and the Web SDK, the customer action and the presented interfaces are handled by the Onerway-hosted page or the SDK. The rest of this page covers the Direct API calls and the settlement timing that all three integration methods share; subscription authorization is documented for the Direct API only.

Direct API integration

Create the transaction

Once the customer has chosen a method, call Create direct transaction from your server with the local payment method scope value of the productType field, subProductType=DIRECT (use SUBSCRIBE for subscriptions, see Local payment method subscriptions), txnType=SALE, and the lpmsInfo field: lpmsType names the method and the remaining child fields are conditionally required per method, see Method-specific parameters. productType=ALL is an aggregated Checkout display concept and is not supported by the Direct API.

Handle the customer action

A response of status=R means the customer still has one action to take, and the actionType field says which. Handle all three values:

actionTypeWhat to do
RedirectURLRedirect the customer to the redirectUrl field. What the customer sees is determined by the method: a bank selection page, the bank app, or an online banking authorization page
QrCodeDisplay the QR code or barcode carried by the codeForm field on your own page; when that field carries an expireTime, handle expiry accordingly
ShowContextUse the presentContext field to display content or invoke the client payment SDK as required by the method; see WeChat Pay for mini programs and apps

For methods that open a native app, verify that opening the app and returning to your site both work in mobile browsers.

Handle the synchronous return

With redirect methods, the customer returns to your page through txnOrderMsg.returnUrl after completing or abandoning the payment. The return is only a page transition: it is not guaranteed to carry transaction parameters and it does not mean the payment is complete. Append your own order reference to returnUrl, show the customer a processing state when they return, and verify the result from your server with Query transactions.

Confirm the final result

The final state comes from the payment result webhook, whose paymentMethod field returns the method that was actually charged. Signature verification, acknowledgement and retries, idempotent deduplication, and query-based compensation are covered in Webhooks.

Method-specific parameters

Apart from lpmsType, lpmsInfo has five child fields, each conditionally required depending on the method you selected:

Child fieldWhat it collects
bankNameThe bank the customer chose; needed by Przelewy24; the selectable banks are listed under the lpmsInfo field reference below
walletAccountIdWallet or local account identifier
walletAccountNameWallet or local account name
iBanAccount number for regional transfers that identify the bank by IBAN
prepaidNumberPrepaid card or voucher number for Japan prepaid methods

The full required conditions, and the bank values for bankName, are on the lpmsInfo field.

Requirements for billingInformation and shippingInformation can also vary by method. See the relevant API Reference for confirmed conditions: for example, Pix Direct API requests require billingInformation.identityNumber, while Checkout and Web SDK can collect it on the Onerway page after the initial request. WeChat mini program payments also require lpmsInfo.walletAccountId. See the method guides above for integration differences. Confirm requirements not listed in the reference with Onerway support; a single sandbox result does not establish the complete field rules.

Delayed settlement and waiting states

Not every local payment method settles instantly: after the customer receives a payment code, a voucher, or transfer details, they may pay some time later. Bank transfers, virtual accounts, convenience stores, and cash vouchers all work this way, and orders paid with them need the following handling:

  • Save the returned identifiers with your order: paymentId identifies the payment intent, while transactionId identifies a specific transaction. Query transactions can return multiple transactions for one paymentId, so keep their transaction records separate. The payment can still be retried while the intent stays open (paymentStatus is O in the notification); once it is closed (N), that payment intent can no longer be paid.
  • The payment result webhook is sent only when the transaction reaches a final state; a payment code or voucher shown to the customer does not mean the funds have arrived.
  • An order can stay in a processing state for a long time after the transaction is created, so design a waiting state and decide what happens on timeout; when a payment intent times out and is closed, paymentStatus in the notification is N.
  • Do not treat the synchronous response or the return to your page as proof of settlement, and do not ship on return. If no notification arrives, compensate with Query transactions and read the transaction-level status — that endpoint does not return the payment-intent-level paymentStatus.

Local payment method subscriptions

Subscriptions are supported by a subset of methods — currently DANA, WeChat, GCash, and TOUCH_GO_EWALLET. These methods support self-managed subscriptions only (subscription.selfExecute=2): you initiate the renewal charges. For the difference between managed and self-managed subscriptions, see Subscription payments.

frequencyType accepts only D, but that does not limit you to daily billing: subscription.frequencyPoint records the billing cycle in days, such as 30 for a monthly subscription or 365 for an annual subscription. You determine when to initiate renewal charges.

  1. Check availability. Call List available payment methods with subProductType=SUBSCRIBE and the actual order and client parameters. Continue only if the response includes the selected method.
  2. Create the initial subscription. On your server, call Create direct transaction with productType=LPMS, subProductType=SUBSCRIBE, txnType=SALE, and the selected method in lpmsInfo.lpmsType. In subscription, set requestType=0, selfExecute=2, and your customer identifier in merchantCustId. Encode lpmsInfo and subscription as JSON strings. Submit the real subscription amount in orderAmount, with the line items in txnOrderMsg.products adding up to it.
    Select the request example “Self-managed local payment subscription template”. Replace the placeholders with the selected method, its available currency and client platform, the real order and customer details, and your application credentials. Set txnOrderMsg.returnUrl to your customer return page and txnOrderMsg.notifyUrl to your webhook endpoint. Supply any additional customer or wallet information required for that method, collect the actual client data, and generate the signature after completing the request. The template shows the common request structure; it does not establish a method’s supported currencies, platforms, or complete customer-information requirements.
    The template uses mode=1 to request authorization only, leaving the first charge to you. With mode=2, Onerway collects the first charge once the customer has authorized; 2 is also the default when mode is omitted. Set frequencyPoint to your billing cycle in days. Supply osType when paymentMode is not WEB; it can be omitted for WEB.
  3. Present the authorization action. When the synchronous response has status=R, use its actual actionType and corresponding response field to show the authorization page, QR code, or payment instructions, as described in Handle the customer action. The customer completes authorization in the payment method provider’s interface. A return to your page does not confirm authorization.
  4. Save the authorized contract. Verify the saved payment method result webhook with txnType=BIND_CARD and scenarios=SUBSCRIPTION_INITIAL. Save its contractId and tokenId only when it reports status=S. This authorization notification returns orderAmount=0.00; the initial request still contains the real subscription amount.
  5. Initiate charges. Call Create direct transaction on your own billing schedule with subscription.requestType=1, the saved contractId and tokenId in subscription, and the amount for this cycle in orderAmount. Use the request example “Self-managed local payment charge template” and replace its placeholders, including setting txnOrderMsg.notifyUrl to your webhook endpoint. The customer identifier comes from the contract and does not need to be submitted again. Under mode=2, Onerway collects the first charge after authorization, so you initiate charges from the second cycle; under mode=1, you initiate the first charge too. Every charge is reported by the subscription payment webhook with txnType=SALE.

Differences from a card subscription:

  • A failed authorization ends the subscription: no subscription payment webhook follows, and subscriptionStatus in the saved payment method result webhook is canceled.
  • Under mode=2, the authorization and the first charge are two notifications. Their transactionId and channelRequestId differ, while merchantTxnId, contractId, and tokenId are the same (paymentId matches too when present, but the first-charge notification may omit it, so do not rely on it as the only matching key). The order in which the two reach your server is not guaranteed, so process both idempotently by their own transactionId.
  • This tokenId is a subscription token. It is only for subscription operations and cannot be used for a subProductType=TOKEN payment, and a local payment method subscription does not return cardTokenId.
  • The subscription payment webhook for the first charge does not return scenarios; the subscription scenario is returned in the saved payment method result webhook instead.

Extra requirements of some regional methods

The values for stc pay, Tamara, Tabby, and MADA are stcpay, tamara, tabby, and cardpay; you can find each by method name in the value list of the lpmsInfo.lpmsType field. These methods also have requirements for customer, product, and order information:

  • For one-time payments with stcpay, tamara, or tabby (subProductType=DIRECT, txnType=SALE), provide the top-level merchantCustId when creating the payment. This applies to Direct API, Checkout, and Web SDK, including flows where the customer selects the method later. It identifies the customer in your system. Hosted card payments with cardpay also require it in the Direct API and Checkout.
  • Product line items must be categorized: submit virtual or physical in the txnOrderMsg.products[].type field, and an HTTPS product image URL in JPG, PNG, or WebP format in the txnOrderMsg.products[].productAvatarUrl field.
  • The txnOrderMsg.customerPlatform field is required: submit the website domain for web transactions or the app name for app transactions.
  • stc pay settlement depends on logistics information: once the transaction has completed successfully and the package has been delivered to and signed for by the customer, call Upload logistics information with the carrier code and tracking number. Virtual-goods transactions and installment transactions are not covered by this settlement prerequisite.

Contact Onerway support for the enablement scope of these methods.

Go-live checklist

  • Integration methods that build their own method list call List available payment methods before displaying them, and the list is not hard-coded in the front end.
  • All three actionType values under status=R are handled, the return page only receives the customer, and the order result is confirmed from your server or from the notification.
  • The webhook endpoint has passed the Webhooks go-live checklist and can receive the payment result webhook; when you use subscriptions it can also receive the saved payment method result webhook and the subscription payment webhook.
  • Methods that do not settle instantly have a waiting state and a timeout policy, and nothing ships when the customer returns.
  • Every method you are launching has been verified in the sandbox, including customer cancellation mid-flow and the mobile redirect.
  • For local payment method subscriptions, contractId and tokenId are saved only on a successful authorization, stored as strings, and associated with the customer.