Accept an FPX payment
Learn how to accept FPX, a common payment method in Malaysia.
Caution
Stripe automatically presents your customers payment method options by evaluating their currency, payment method restrictions, and other parameters. We recommend that you configure your payment methods from the Stripe Dashboard using the instructions in Accept a payment.
If you want to continue manually configuring the payment methods you present to your customers with Checkout, use this guide. Otherwise, update your integration to configure payment methods in the Dashboard.
FPX is a single-use payment method. Customers pay with FPX by redirecting from your website, sending you payment, then returning to your website where you get immediate notification on whether the payment succeeded or failed.
Determine compatibility
A Checkout Session must satisfy all of the following conditions to support FPX payments:
- Prices for all line items must be in the same currency. If you have line items in different currencies, create separate Checkout Sessions for each currency.
- You can only use one-time line items (recurring subscription plans are not supported).
Accept a payment
Note
Build an integration to accept a payment with Checkout before using this guide.
Use this guide to learn how to enable FPX – it shows the differences between accepting a card payment and using FPX.
Enable FPX as a payment method
When creating a new Checkout Session, you need to:
- Add
fpx
to the list ofpayment_
method_ types - Make sure all your
line_
use theitems myr
currency
Fulfill your orders
After accepting a payment, learn how to fulfill orders.
Confirmation page
FPX requires showing your customer their transaction information after they’ve completed their payment. Follow the custom success page guide to learn how to customise your success page.
When customising, you’ll need to retrieve the Charge object directly from the PaymentIntent object using the PaymentIntent ID from your Checkout Session and display the following information on your success_
page.
Information | Source of information |
---|---|
Transaction Date & Time | created from the Charge object. |
Amount | amount from the Charge object. |
Seller Order No. | statement_ from the Charge object. |
FPX Transaction ID | payment_ from the Charge object. |
Buyer Bank Name | payment_ from the Charge object |
Transaction Status | status from the Charge object |
Test your integration
When testing your Checkout integration, select FPX as the payment method and click the Pay button.
Handle refunds and disputes
The refund period for FPX is up to 60 days after the original payment.
There is no dispute process—customers authenticate with their bank.