Goal
Enable a returning user to submit a transaction using a previously-stored payment credential.
Steps
Step 1: Display stored credentials and enable selection
What you need to do
Display the user’s previously-stored payment credentials and allow them to select one for the transaction. In order to support users adding new cards, follow the steps from process a new card.How to do it
- Call the list-user-credentials endpoint with the user’s ID.
- Render the returned credentials in your UI, including the information about the linked card, account, and bank so they are easily identifiable.
- Allow the user to select which credential they would like to use for the payment.
If the user is withdrawing funds, only allow them to select credentials that are enabled for withdrawals. Only credentials with type
secure_debit can be used for withdrawals.Step 2: Submit the payment for authorization
What you need to do
Submit the payment using the credential selected by the user.How to do it
- Call the authorize-payment endpoint with the payment details and selected credential ID.
- Display the result (approved or declined) to the user.
Integration checklist
- Verify that only
secure_debittype credentials are available for withdrawals - Test by adding a new card then submitting a second transaction using the stored payment credential.