# Pay by Bank

> Accept one-time Pay by Bank payments through Checkout and confirm the bank-payment result on your server.

## Basic information

Customers follow the hosted payment instructions to review and authorize a payment through their bank.

- Integration path: [Checkout](/payments/online-payments/checkout)
- Transaction type: One-time payment
- `lpmsInfo.lpmsType`: `PAY_BY_BANK`

| Customer country/region | Order currency |
| --- | --- |
| 🇬🇧 GB | GBP |

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

This guide covers enabled configurations. 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 Pay by Bank, 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 Pay by Bank 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).

Prepare the billing and shipping information required by the Checkout API, including the customer’s email and the actual country for each address. Configure your server notification URL and customer return URL, and store the mapping between your order and the Onerway identifiers.

## Start the payment with 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 Pay by Bank, set [`lpmsInfo.lpmsType`](/payments/api-reference/endpoints/create-checkout-payment#request-lpmsInfo) to `PAY_BY_BANK`, 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 GBP for this flow, and add this method’s `lpmsInfo` if you want to select only Pay by Bank. 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 follow the hosted payment instructions to select an available bank if prompted, check the payment information, and complete authentication and payment authorization on the bank’s website or app. Available banks and steps depend on the current payment page. Your application does not collect online-banking credentials or one-time passwords.

Customers may leave before completing authorization. Opening the payment page, logging in to the bank, or returning to your site does not confirm payment. Keep the order awaiting confirmation until your server retrieves the result.

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 Pay by Bank test procedure with Onerway, then follow [Sandbox testing](/payments/get-started/testing):

1. Create an order with GBP and the required customer details. Confirm that `redirectUrl` opens Checkout and that Pay by Bank is available.
2. Check that the hosted page opens with the expected payment information. Complete the agreed bank authentication and payment authorization test, then verify the result on your server. Merely opening the payment page does not pass the successful-payment check.
3. Test a customer leaving before authorization, failed authentication or payment, and a return to your site before a final result. 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.
