FPX
Basic information
The customer selects FPX and a bank on the hosted page, then authorizes payment through online banking.
- Integration path: Checkout (desktop browser)
- Transaction type: One-time payment
lpmsInfo.lpmsType:FPX
| Customer country/region | Order currency |
|---|---|
| 🇲🇾 MY | MYR |
The customer country/region is the billingInformation.country value in the payment request.
This guide applies to enabled merchants.
Before you begin
Complete Setup and confirm that FPX is enabled for your merchant and application. Confirm your transaction limits, payment expiry, settlement arrangements, and test procedure with Onerway. Use MYR for this flow and follow Currency and amount validation.
Prepare the customer's actual billing details, including name, email, country, and address. Supply shipping and product details according to the API requirements. This flow provides these details when creating the order. The customer needs an online-banking account with a bank offered for the order and access to the bank’s authentication method.
Configure your return page and notification endpoint, and store the mapping between your order and the Onerway payment identifiers.
Start the payment through Checkout
- On your server, call Create Checkout Payment with
productType=ALL,subProductType=DIRECT,txnType=SALE,paymentMode=WEB, andorderCurrency=MYR. To show only FPX, setlpmsInfo.lpmsTypetoFPX, sendinglpmsInfoas a JSON string. If you omitlpmsInfo, the customer chooses from the methods available for the order. - Supply the prepared customer and product details, notification URL, and return URL. Encode
billingInformation,shippingInformation, andtxnOrderMsgas JSON strings. Keep product and order currencies consistent and ensure the product amounts, discounts, and shipping charges totalorderAmount.
Select the request example “Unified Checkout with all available payment methods”. Replace the placeholders with your order and customer data, use MYR, and removecardInfofor this flow. Add this method'slpmsInfoif you want to show only FPX. The example shows the shared Checkout request structure. - Select the response example “Unified Checkout session created”. Store the returned
paymentIdandtransactionIdagainst your order, then redirect the customer's browser toredirectUrl. The initialstatus=Umeans the payment is unpaid. - The customer selects FPX and an available bank in Checkout. Checkout handles the redirect to the bank payment page; your application does not supply the bank-selection parameters for this flow. If the method is absent, contact Onerway to check application enablement and order conditions.
See Checkout integration for signing and return-page handling. You can use List available payment methods to check order availability before creating the payment.
Customer actions and final result
The customer selects a bank in Checkout, continues to the bank’s online-banking page, reviews the payment details, and completes the bank’s authentication and authorization steps. Your application does not collect their online-banking password or verification code. See PayNet’s FPX payment instructions for the customer’s payment process.
Returning to your website does not confirm payment success. Process the signature-verified Payment Result notification on your server. If the notification is missing or you need to check the result, call Query payments with the saved paymentId. Fulfil the order only after your server confirms payment success. See Webhooks for verification, acknowledgement, idempotency, and query fallback.
If the customer cancels or leaves payment incomplete, check the existing payment before creating a replacement.
Refunds and disputes
Confirm the refund capabilities, partial-refund support, request deadlines, and dispute process enabled for your account with Onerway. If refunds are enabled, follow Refunds and track the refund result separately.
Testing and go-live
Agree the test environment and bank authorization procedure with Onerway, then follow Sandbox testing.
- Create a MYR order with the required customer and product details. Verify that the returned URL opens Checkout and FPX is available.
- Select FPX and an available bank, check the displayed amount, and complete the agreed bank authorization procedure. Retain the notification and acknowledgement for the same order, then query the payment and check that the results agree.
- Test cancellation, incomplete payment, and returning before the final result. Confirm that a return alone never marks the order paid, duplicate notifications are handled idempotently, and missing notifications can be reconciled by querying the payment.
- Before launch, verify production enablement, notification and return URLs, MYR order support, limits, and expiry. Test refunds separately if enabled.