Examples
Basic Card Payment
A complete React checkout page using FloPayProvider and CheckoutForm for a self-contained payment flow.
The simplest way to accept payments with FloPay. The CheckoutForm component handles the entire lifecycle internally: card tokenization, PaymentIntent creation, 3DS confirmation, and backend submission. You just handle the success callback.
When a clientSecret is available from your session, pass it via FloPayProvider options instead of amount/currency:
The CheckoutForm internally handles:
- Validating and tokenizing the card
- Creating a PaymentIntent via the billing API
- Confirming the payment (including 3DS challenges)
- Calling
processPaymenton the backend - Retrying 3DS if the backend returns
3ds_required