RyzeDeskRyzeDesk

Stripe

4105 articles

Handle Fpx Payment


Handle an FPX payment stripe.handleFpxPayment(clientSecret: string, element: Element, data?: object) handleFpxPayment has been renamed to confirmFpxPayment. In addition to the rename, we have slightly modified the arguments. These changes do not affect the behavior of the method. While we will continue to support handleFpxPayment for the duration of the beta, we think the new name and arguments are easier to understand and better convey what the method is doing. Use stripe.handleFpxPayment in the FPX payment method creation flow when the customer selects a bank from the dropdown. It will gather the bank code from the element, along with any other PaymentIntent data you provide. It will then create an FPX payment method and confirm the PaymentIntent. > Note that stripe.handleFpxPayment may take several seconds to complete. > During that time, you should disable your form from being resubmitted and show a waiting indicator like a spinner. > If you receive an error result, you should be sure to show that error to the customer, re-enable the form, and hide the waiting indicator. - clientSecret The client secret of the PaymentIntent. - element An fpxBank Element that will be used to create a payment method. - data A data object to be sent with the request. - return_url The url your customer will be directed to after they complete authentication. Be sure to review the payment confirmation page requirements. ### Example title Handle a FPX payment

Last verified 2026-09-27

Is this helpful?