Overview
The@yuno-payments/vue package provides Vue 3 components and composables for embedding Yuno checkout in your application. The plugin manages SDK initialization and provides reactive state for payment flows.
Vue components require Vue 3.3+ with Composition API support. Vue 2 is not supported.
Prerequisites
- Vue 3.3+ application
- Yuno API keys (Authentication)
- At least one payment method enabled in your Dashboard
Installation
Plugin Setup
Register the Yuno plugin in your application entry point:Plugin Options
YunoCheckout Component
Renders the full checkout UI with all available payment methods.YunoCheckout Props
YunoCheckout Events
YunoPaymentForm Component
Renders a card-only payment form for custom checkout flows.Composables
useYunoPayment
Provides imperative control over the payment flow with reactive state.useYunoPayment Return Values
Slots
Components expose slots for customizing sections of the checkout UI:Available Slots
Theming
Apply themes through the plugin options or override with CSS variables:Nuxt.js Integration
Create a Nuxt plugin to register the Yuno plugin on the client side only:Complete Example
A full checkout page in Vue with session management:Testing with Vue Test Utils
Mock Yuno components in unit tests. Use end-to-end tests (e.g., Cypress, Playwright) for full integration testing against the sandbox environment.