1. Create a customer
Create a customer record before collecting the payment method. POST/customer/v1/create
The response returns a
customer_id. Store it in your backend and use it when initiating the Element SDK card payment.
2. Create a Payment Intent
Create a Payment Intent from your backend, then follow the Element SDK integration steps to render the card-payment form.3. Request token creation
Token generation is supported only for card payments initiated withpayment.pay(). Include the customer_id and optional token fields in that call.
4. Confirm the card payment
Complete the payment withqfpay.confirmPayment(). A successful response can include a token_id.
Do not treat the browser response as the final source of truth. Use the Token Creation Notification to confirm and persist the token.
Manage customer records
Use these endpoints to manage the customer record associated with a saved payment method.Query a saved token
POST/token/v1/query
Query by customer_id and token_id to retrieve the saved token’s details and expiry date. You can also filter by reason, reference, and token creation or expiry dates.

