This page documents a legacy SDK. Starting a new integration? Use the Yuno SDK. Already on a legacy SDK? Follow the migration guide.The new Yuno SDK (Web v2.x, iOS v3.x, Android v3.x, React Native v2.x) replaces the Full, Lite, Seamless, Render, Headless, and Secure Fields SDKs with one API across every platform. Legacy SDKs remain supported side by side during the transition and are scheduled for deprecation in 2027. Contact your Account Manager for migration planning.
Step 1: Include the library in your project
Before proceeding with the Lite SDK implementation, see the Quickstart Guide for detailed instructions on how to properly integrate the SDK into your project. Choose the integration method that best suits your development workflow and technical requirements. After completing the SDK integration, you can proceed with the following steps to implement the lite enrollment functionality.Step 2: Initialize SDK
Initialize the Yuno SDK in yourApplication class by providing a valid PUBLIC_API_KEY:
CredentialsSee the credentials page for more information: /reference/getting-started/authentication
Step 3: Create a customer session
To start the enrollment process, you need to provide thecustomer_session. First, you need to create a customer. Use the Create Customer endpoint to create new customers. In the response, you will receive the customer id, which you use to create the customer session.
After creating the customer, you can create the customer session. Use the customer id and the Create Customer Session endpoint. The customer_session will be provided in the response. You need a new customer_session every time you enroll in a new payment method.
On your server, also create an enrollment payment method object for that customer session to define which payment method the customer can enroll. Keep your private API keys on the server.
Step 4: Start the enrollment process
To provide a lite enrollment experience, you must first initialize the enrollment process and then launch the UI.1. Initialize enrollment
CallinitEnrollment in your activity’s onCreate method to prepare the SDK for the enrollment flow.
2. Launch enrollment UI
CallstartEnrollment with the sessions and configuration parameters to display the enrollment form.
Parameters
Configure the lite enrollment with the following options:Step 5: Enrollment Status
When the enrollment process completes, the SDK invokes the callback provided ininitEnrollment with the state and, on INTERNAL_ERROR, a StatusMessage describing the failure (null on every other state).
Possible status values
SUCCEEDED: The enrollment was successful.FAIL: The enrollment failed.PROCESSING: The enrollment is being processed.REJECT: The enrollment was rejected.CANCELED: The user canceled the enrollment.
Demo AppIn addition to the code examples provided, you can access the Yuno Android SDK repository for a complete implementation of Yuno SDKs.