Skip to main content

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).
Using React or Vue? Check out the React Components or Vue Components for framework-specific wrappers.

Prerequisites

  • Yuno API keys (Authentication)
  • @yuno-payments/sdk-web installed (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:
The one-time token expires after a single use. Generate a new token for each payment attempt.
5

Create payment and handle 3DS

Use the token server-side to create the payment, then call continuePayment() client-side for 3DS:

Styling Secure Fields

You can style the iframe inputs to match your design system:
See Customization for the full list of style properties.