Tokenization replaces sensitive card data with a reusable token. Tokens support one-click payments, subscriptions, and recurring charges without storing raw card numbers on your servers.
Always tokenize from your backend — never from client-side JavaScript with raw card data.
The initial response returns code BYRD207 (pending redirect). Provide a redirectUrl in your request so the customer can be redirected back after 3DS authentication completes.The customReference field acts as a virtual wallet identifier — multiple tokens can be stored under the same reference and queried together later. The alias field is an optional human-readable label for the token.
Include tokenOptions.customReference in your order creation request. During the payment flow, the customer sees a checkbox to consent to saving their card.
If the customer consents and the payment is approved, Paybyrd delivers the token details via webhook. If the webhook is not received, query the token by customReference using the tokens API.The Checkout handles card collection, 3DS authentication, and payment completion — no direct calls to the tokens endpoint are needed.
To use a saved token in a subsequent Checkout payment, create an order with the same customReference used during token creation. The Checkout page will display the saved card to the customer.
The customReference in the order must match the customReference used during tokenization. If they differ, the payment will fail.
For security, Paybyrd requires two-factor authentication before charging a saved card. A one-time code is sent to the customer’s email and phone number.