<primer-checkout>. You’re ready to accept payments.
The Default Payment Flow
When a customer lands on your checkout page, here’s what happens:- Primer loads your payment methods from the Dashboard configuration
- Customer selects a payment method and enters their details
- Customer submits the form to complete the payment
- Primer handles the result and notifies your application
What Primer Handles for You
Out of the box, Primer Checkout manages:| Concern | What Primer Does |
|---|---|
| Validation | Real-time input validation with inline error messages |
| Error display | Payment failures shown automatically in the UI |
| Redirects | 3DS challenges, bank redirects, and wallet flows |
| Loading states | Visual feedback during processing |
| Payment method logic | Each method’s specific requirements and flows |
Listening for Results
To react to payment outcomes, register callbacks when the SDK is ready:Testing in Sandbox
Use these test cards to verify your integration:| Card Number | Result |
|---|---|
4111 1111 1111 1111 | Success |
4000 0000 0000 0002 | Declined |