How it works
- You build and render your own payment form
- Collect card data or use a vaulted token
- Call
generateToken()to create a one-time token via Yuno’s SDK (PCI-safe) - Create the payment server-side using the token
- Handle any 3DS or provider challenges
Integration steps
1. Create a checkout session
Create a checkout session from your server using the Create Checkout Session endpoint.2. Initialize the SDK
3. Create the Headless client
4. Generate a one-time token
From raw card data:5. Create the payment (server-side)
6. Handle 3DS challenges
Key methods
| Method | Description |
|---|---|
yuno.apiClientPayment(config) | Initialize the Headless client |
apiClientPayment.generateToken(payload) | Create a one-time token from card data or vaulted token |
apiClientPayment.getThreeDSecureChallenge(session) | Get the 3DS challenge URL |
apiClientPayment.getContinuePaymentAction(config) | Check for additional actions needed |
Card vaulting
Setsave: true in the card object to vault the card on successful payment.
Next steps
Full Checkout
Let Yuno handle the entire UI.
Seamless Checkout
SDK convenience with payment method control.