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) 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.
- Need a quick implementation with minimal customization requirements
- Want to focus primarily on card payment processing
- Prefer a ready-to-use UI that handles the payment flow
- Pre-built payment UI components
- Card payment processing
- Basic payment status handling
- Essential error management
Requirements
Before starting the Yuno Android SDK integration, ensure your project meets the technical requirements. Also, ensure the following prerequisites are in place:- You must have an active Yuno account.
- You need your Yuno API credentials (
account_id,public-api-key, andprivate-secret-key), which you can obtain from the Developers credentials section of the Yuno dashboard.
Step 1: Create a customer
Create a customer using the Create customer endpoint before initiating payments. The customer ID returned from this endpoint will be used when creating thecheckout_session.
Step 2: Create a checkout session
Create a newcheckout_session using the Create checkout session endpoint to initialize the payment flow.
Step 3: Include the library in your project
Include the Yuno SDK file in your project through Gradle. Add the repository source:build.gradle file to add the Yuno SDK dependency:
Step 4: Initialize SDK with the public key
Initialize the SDK by callingYuno.initialize() in your application’s onCreate() method:
YunoConfig customization
Step 5: Start the checkout process
Call thestartCheckout method in your activity:
Callback states
Step 6: Initiate the payment process
CallstartPaymentLite to start the process:
Step 7: Create the payment
After obtaining the One-Time Token (OTT), create the payment via your backend using the Create Payment API.Step 8: Continue payment (Required)
If the API response hassdk_action_required: true, call continuePayment():
Demo AppSee the Yuno Android SDK repository for full implementation examples.