Skip to main content

Installation

Add the Yuno Web SDK to your page via script tag or npm.
Use Subresource Integrity (SRI) by including the integrity attribute. Request the latest hash from support@y.uno when upgrading.

Initialization

Initialize the SDK before mounting any checkout component. Pass your public API key as a string:

Initialization Parameters

The first argument must be a string (your public API key), not a configuration object. Passing an object will cause: publicApiKey=[object Object] is not valid. Never include your private secret key in client-side code.

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 call yuno.continuePayment().

yunoPaymentResult(paymentResult)

Called with the final payment outcome after the flow completes.
Always verify the final payment status server-side via webhooks or the GET Payment API. Client-side callbacks should not be the sole source of truth.

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. 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 inside yunoCreatePayment.

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:
Key type definitions:

Subresource Integrity (SRI)

When loading the SDK via script tag, use SRI to ensure the script has not been tampered with:
Request the current SRI hash from support@y.uno. Update the hash whenever you upgrade the SDK version.

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.