Skip to main content

Overview

Using React or Vue? Check out the React Components or Vue Components for framework-specific wrappers.
SDK Lite renders a payment form directly in your checkout page. The integration flow:
  1. Server: Create a checkout session
  2. Client: Initialize the SDK and mount the payment form
  3. Server: Create the payment when the customer submits
  4. Client: Call continuePayment() for 3DS or async flows

Prerequisites

  • Yuno API keys (Authentication)
  • @yuno-payments/sdk-web installed (SDK Overview)
  • A server endpoint to create checkout sessions and payments

Integration Flow

1

Create a checkout session (server-side)

Create a checkout session with workflow: "SDK_LITE":
2

Initialize the SDK (client-side)

Pass your public API key as a string argument:
The first argument must be a string (your public API key), not a configuration object. Passing an object will cause an error.
3

Mount the payment form

Call startCheckout() to configure the checkout, then mountCheckout() to render the form:
4

Create the payment (server-side)

When the customer submits the form, create the payment on your server:
5

Handle 3DS and async flows

After creating the payment, call continuePayment() to handle 3DS authentication or async payment status:
See the Continue Payment guide for details on handling 3DS challenges and async payment methods.

Complete Example

See the server-side setup guide for the full backend implementation and the error handling guide for handling edge cases.