Example Payment Transaction
Learn how to use passkeys to secure a payment transaction.
In the last section you learned how to use the Passkey API in a vanilla js way without any SDK. This example shows you how to use the Passkey API to secure payment transactions. If you skipped the last section, we recommend you to read it as we will referring to settings and variables.
Be aware that all transaction API endpoints are secured with your API key.
Add endpoints to start a transaction
Every transaction requires a user ID, a transaction ID and the transaction data to be performed.
Be aware that a transaction ID needs to be a tenant-wide unique identifier. Using the same identifier with the same or another user
on the same tenant will lead to a 409 Conflict
http status message.
Backend:
Frontend:
Was this page helpful?