- Web SDK integration
- iOS
- Android
1. Install
2. Initialize and process payment
3. Add HTML container and trigger payment
4111 1111 1111 1111, any future date, any CVVFor a comprehensive overview of all Web SDK parameters, see Web SDK Common Reference.Complete Web guide →Backend integration
Your backend must implement two API endpoints to work with Yuno:1. Create checkout session
Before displaying the payment UI, your backend creates a checkout session:- Endpoint:
POST https://api-sandbox.y.uno/v1/checkout/sessions - Required: Customer ID, amount, country
- Returns:
checkout_sessionID (used in SDK) - Reference: Create checkout session API
2. Create payment
In the One-Time Token (OTT) callback, your backend creates the payment:- Endpoint:
POST https://api-sandbox.y.uno/v1/payments - Required: One-time token (from SDK callback), checkout session
- Returns: Payment status and
sdk_action_requiredfield - Reference: Create payment API
sdk_action_required: true, you must call the SDK’s continuePayment() method to complete async payment methods (3DS authentication, PIX, bank redirects, etc.).
Parameters
Primary parameters used in this quickstart:| Parameter | Description |
|---|---|
publicKey / apiKey | Your Yuno public API key (frontend). From Yuno Dashboard → Developers > Credentials. |
checkoutSession | Checkout session ID returned by your backend (create session endpoint). Required to start payment. |
countryCode | ISO country code for the payment (e.g. US, CO). See Country coverage. |
elementSelector (Web) | CSS selector for the element where the payment form is mounted (e.g. #payment-form). |
Alternative integration methods
If you need more control over the user interface or specific payment flows, Yuno provides alternative integration methods:Lite SDK
A lightweight integration that gives you full control over the payment method display while Yuno handles the secure payment processing.Secure Fields
Build your own payment forms from scratch using our UI components for maximum customization (Web Only).Test cards
| Card Number | Scenario |
|---|---|
| 4111 1111 1111 1111 | Success |
| 4000 0000 0000 0002 | Declined |
| 4000 0000 0000 3220 | 3DS Challenge |