Accept card payments through every current XPay SDK. Create the PaymentIntent with payment_method_types: "card", then render the card element for the customer's platform.
Element by platform
The element securely collects card details. Don't send raw card numbers, expiry values, or security codes to the merchant backend.
Integrate cards
- Configure the acquiring gateway and its credentials on the Gateways screen in the XPay portal.
- Create a PaymentIntent using the
cardAPI value. - Render the card element from the applicable XPay SDK guide.
- Use the readiness callback to enable payment submission only after all required fields are valid.
- Confirm the PaymentIntent and handle any required 3D Secure authentication.
- Reconcile the result through the shared payment webhook.
Visa and Mastercard are enabled by default in the Android and Swift card elements. Their SDK guides document how to add supported card types such as American Express and PayPak.
Handle the result
Use the platform-specific call and result shape in SDK confirmation request and result. Use PaymentIntent lifecycle and statuses to handle authentication, capture, success, and failure states.