start(). Pass the pre-collected data inside data on the paymentMethod you give to start(), override createPayment to POST to your backend (manual mode), and let the SDK orchestrate tokenization, 3DS, and status polling automatically. If you don’t want the SDK to continue the flow after creating the payment, set autoContinuePayment to false on the TransactionConfig object.
Before you start
- Load the unified SDK bundle instead of the legacy one and initialize it as the side-by-side shows:
window.Yuno.initialize(...)becomesSdkPayments.initialize(...). Your public API key and the checkout sessions your backend creates do not change (Before you begin). - Decide who creates the payment. The checkout session’s
workflowmust match that decision:
Side-by-side
What changes
Grouped in the order you edit the code. Renamed: same role, new name. Moved: same value, new owner. Removed: nothing to call. New: no legacy counterpart. The last column is the only thing you have to do beyond the rename.Initialization and config
Callbacks
Entry points
Related
createPayment. The mode-flip callback.TransactionData. Per-method headless data shape.OneTimeToken. Token payload sent to your backend.