Overview
Secure Fields lets you embed individual, PCI-compliant card input fields (card number, expiry date, CVV) directly into your custom checkout UI. Each field is rendered in a secure iframe managed by Yuno, so sensitive card data never touches your servers.Secure Fields gives you complete design freedom while keeping your PCI scope at SAQ-A level (the simplest compliance level. Card data never touches your servers).
Prerequisites
- Yuno API keys (Authentication)
@yuno-payments/sdk-webinstalled (SDK Overview)- A custom checkout page where you control the form layout
Integration Flow
1
Create a checkout session (server-side)
2
Initialize the SDK
3
Mount individual Secure Fields
Create container elements for each field and mount them:
4
Generate a one-time token
When the user submits the form, generate a token from the secure fields:
5
Create payment and handle 3DS
Use the token server-side to create the payment, then call
continuePayment() client-side for 3DS: