Skip to main content

Requirements

  • API Key: Obtain your API key from the Developer Section in our dashboard.
  • SDK: Add the Paybyrd SDK to your site.

Step-by-step Guide

1. Initiate the flow

Create a payment request using your API key:
Example response
Execute this request from your backend. Sending card data from a client exposes credentials to end users.
For full details on payment creation, see the API reference.

2. Handle the Payment Response

Code BYRD207 means 3DS authentication is required before the payment can complete. The response includes these 3DS fields:

Using the SDK with threeDSecure.id

  1. Use the threeDSecure.id and requestId values from the payment response to initiate 3DS authentication in the Paybyrd SDK.
  2. Once the 3DS process is complete, retrieve the authentication result and proceed based on the returned status.
The SDK handles 3DS authentication inside your application without redirecting the customer. You control the UI and payment flow.

3. Install and use the Paybyrd ThreeDSecure SDK

Install the SDK:
The SDK is compatible with TypeScript.

Configure the SDK

Create a service instance:

Execute

Pass threeDSecure.id and requestId from the payment response:
The requestId is optional but links the 3DS result to the original payment request.
The SDK handles the entire 3DS flow and submits the payment once authentication completes.

Verify the payment result

After the 3DS flow completes, check the payment result. Use paymentStatus to determine the final transaction outcome.