Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enroll cards by D1 SDK

Overview

This page explains how the issuer application can enroll a card and its end user in Click to Pay by using the D1 SDK.

The issuer application calls enrol, which triggers the same backend Click to Pay enrollment operation as the issuer backend calling the D1 API.

Use this SDK flow when you want the end user to initiate Click to Pay enrollment directly in the issuer application user interface while D1 orchestrates the backend interactions with the Click to Pay directories and the payment network.

Flow

The following diagram illustrates the main steps of the SDK Click to Pay enrollment flow:

Sequence diagram

Since D1 SDK 4.2.0, with the addition of the backend flow, the enrol (Android / iOS) API is also available through D1 SDK.

Prerequites

The SDK flow has the same prerequisites and limitations as the backend flow. Please refer to prerequisites.

The following sequence diagram shows the flow initiated from the issuer application:

Key points

  • The issuer application must provide the consumer information. See ConsumerInfo (SDK API).

  • The enrollment is an asynchronous operation. The final result can be retrieved by:

    • using the callback status (SUCCESSFUL or PENDING),

    • calling the Get Operation endpoint available in the D1 API, or

    • activating D1 notifications. In the SDK flow, the issuer can also activate in-app push notifications in addition to issuer backend notifications.

  • The TSP associated with the payment network triggers a typical digitization flow.

Handle Click to Pay push notifications

Before the issuer application can receive Click to Pay enrollment notifications from the D1 backend, ensure that push notifications are set up as follows:

1

Configure push notifications

Perform the necessary actions as outlined in push notification configuration.

2

Register push notification token

Register the push notification token.

3

Register for message notifications

Register for message notifications.

Once these steps are completed, the issuer application can start receiving push notifications such as clickToPayEnrolment and clickToPayOptOutCard.

When D1 SDK receives a push notification of type clickToPayEnrolment (Android / iOS) or clickToPayOptOutCard (Android / iOS), the issuer application checks the notification to determine whether the Click to Pay enrollment operation or opt-out is successful.

SDK API

Last updated

Was this helpful?