Lite SDK (Enrollment)
The Lite SDK provides full control over your payment experience. It allows you to:
- Control the payment methods displayed to your customers.
- Enroll new payment methods to the customer’s account.
This page focuses on the enrollment process. For details on the payment process, refer to Lite SDK (Payment).
If you wish to save cards during the payment, you can do so while the customer pays. For more information, see Lite SDK (Payment).
Enrollment workflow
The following diagram describes the complete enrollment workflow. Each step is explained in detail below:

SDK Lite Enrollment Flow
This diagram illustrates the payment method enrollment process using the SDK Lite, detailing the interactions between the Merchant Client, Merchant Server, Yuno Server, and Yuno SDK. It outlines the steps for adding a payment method and initiating its enrollment, through to receiving the final enrollment result.
Merchant Client
The Merchant Client represents your frontend application that interacts with both your backend server and the Yuno SDK. It handles the user-facing aspects of the enrollment flow, including:
- Add payment method
- Display payment methods to enroll
- User selects payment method to enroll
- Initiate enrollment
- Initiate SDK to continue enrollment
Merchant Server
The Merchant Server represents your backend application that handles server-side operations and communicates with Yuno's servers. Its key responsibilities include:
- Create Customer
- Create customer session
- Request available payment methods to enroll
- Create enrollment
- Receive enrollment result via webhook
Yuno Server
The Yuno Server handles all backend operations related to customer management, enrollment sessions, and payment method processing. Its main responsibilities include:
- Creates Customer
- Creates customer session
- Returns available payment method
- Creates enrollment in the payment provider
- Receive enrollment results from payment provider
Yuno SDK
The Yuno SDK handles the user interface and enrollment flow on the client side, managing payment method selection and enrollment completion. Its key responsibilities include:
- Continue enrollment flow
- Shows screens for the user to complete enrollment
- Display enrollment result (optional)
Flow
The following steps outline the complete interaction flow between all components of the SDK Lite Enrollment integration, detailing how each request and response moves through the system:
- Merchant Server: Create Customer --> Yuno Server: Creates Customer
- Merchant Client: Add payment method --> Merchant Server: Create customer session
- Merchant Server: Create customer session --> Yuno Server: Creates customer session
- Merchant Client: Display payment methods to enroll --> Merchant Server: Request available payment methods to enroll
- Merchant Server: Request available payment methods to enroll --> Yuno Server: Returns available payment method
- Merchant Client: Display payment methods to enroll --> Merchant Client: User selects payment method to enroll
- Merchant Client: User selects payment method to enroll --> Merchant Client: Initiate enrollment
- Merchant Client: Initiate enrollment --> Merchant Client: Initiate SDK to continue enrollment
- Merchant Client: Initiate SDK to continue enrollment --> Yuno SDK: Continue enrollment flow
- Yuno SDK: Continue enrollment flow --> Yuno SDK: Shows screens for the user to complete enrollment
- Merchant Server: Receive enrollment result via webhook --> Yuno Server: Receive enrollment results from payment provider
- Yuno Server: Receive enrollment results from payment provider --> Yuno SDK: Display enrollment result (optional)
Platform-specific SDK setup
To implement the Full SDK integration, follow the platform-specific guides below:
Updated 6 days ago