Installation
Add the Yuno Web SDK to your page via script tag or npm.- Script Tag
- npm
Initialization
Initialize the SDK before mounting any checkout component. Pass your public API key as a string:Initialization Parameters
Seamless Checkout Configuration
Start Seamless Checkout by passing a configuration object with all options.Checkout Configuration Properties
Callbacks
yunoCreatePayment(oneTimeToken, tokenWithInformation)
Called when the customer submits payment and Yuno generates a one-time token. Use this to create the payment on your server, then callyuno.continuePayment().
yunoPaymentResult(paymentResult)
Called with the final payment outcome after the flow completes.yunoPaymentMethodSelected(data)
Fires when the user selects a payment method.yunoError(error)
Called when the SDK encounters an error.onLoading(isLoading)
Reports loading state changes during SDK operations.Render Modes
Control how the checkout form appears in the page.Modal
The checkout form opens in an overlay modal on top of your page.Element (Inline)
The checkout form renders inline within a specified container.Card Form Options
Configure the card payment form behavior and appearance.Card Properties
Card Field Types
Use individual field types to render standalone, embeddable card inputs:Seamless Flow Methods
mountSeamlessCheckout
Mount the checkout form for a specific payment method after the customer selects one.startPayment
Trigger the payment after the customer has filled in the form.continuePayment
Continue the payment flow after creating the payment on your server. Call this insideyunoCreatePayment.
External Buttons
Mount Apple Pay and Google Pay buttons outside the main checkout form.mountExternalButtons
Render wallet payment buttons in specified containers.unmountExternalButton
Remove a specific external payment button.unmountAllExternalButtons
Remove all mounted external payment buttons.Enrollment
Use the SDK to enroll (vault) payment methods for returning customers.Enrollment Statuses
See Card Enrollment for the complete enrollment integration guide.
TypeScript Support
The Yuno Web SDK includes TypeScript type definitions. Import types directly:Subresource Integrity (SRI)
When loading the SDK via script tag, use SRI to ensure the script has not been tampered with:Complete Initialization Example
A full example with all configuration options:Next Steps
Full Checkout
Pre-built UI with zero payment method management.
Seamless Checkout
Control payment method selection with SDK convenience.
Customization
Theme and style your checkout.
Card Enrollment
Vault cards for returning customers.