Overview
This guide covers integrating Yuno with VTEX Headless for merchants using custom frontends instead of VTEX IO’s standard checkout. The VTEX Headless flow lets you control the UI while the Yuno VTEX connector handles payment processing.For standard VTEX IO integration, see the VTEX Plugin page.
VTEX IO Applications
Two VTEX IO applications are required:
The payment app:
- Runs Yuno Web SDK to collect browser data
- Executes third-party fraud detection SDKs
- Processes payments directly within Yuno
- Supports two credit card payments
Installation
Install the Connector (yunopartnerbr.yuno)
- Log into your VTEX store account.
- Navigate to Store Settings > Providers in VTEX Admin.
- Click New Provider.
- Search for and select Yuno.
- Click Install and follow setup instructions.
Install the Payment App (yunopartnerbr.yuno-app)
Required for card-based payments:
- Go to Apps > App Management in VTEX Admin.
- Search for Yuno.
- Select Yuno Payment App (second option).
- Click Install.
Install SDK Web VTEX (npm)
For headless projects, install the SDK via npm:Headless Payment Flow
The headless flow works as follows:- User clicks pay button in your custom frontend.
- VTEX backend sends payment information to the Yuno connector.
- Connector sends credit card information to Yuno API.
- API returns a one-time token.
- Connector informs VTEX to open payment app with token.
- Your frontend opens Yuno SDK Web VTEX with provided data.
- Payment details, browser information, and fraud data are sent to the connector.
- Connector processes payment via
{{merchant's domain}}/_v/yunopartnerbr.yuno/v4/payments/yuno. - User receives payment status confirmation.
SDK Web VTEX Configuration
Include the script in your HTML:SDK Parameters
Payload Structure
Thepayload parameter receives a JSON string from the connector response:
PIX Flow (Headless)
For PIX and other alternative payment methods, the flow differs:- User clicks pay button.
- VTEX backend sends payment information to the connector.
- Connector creates payment in Yuno.
- Yuno generates QR code and payment details, returns to VTEX.
- Your frontend displays the PIX QR code or redirects the user to complete payment.
Seller ID / Affiliate Code
The VTEX connector capturessellerId (Affiliate Code) from VTEX orders and includes it in checkout session and payment metadata: