startCheckout(…) to wire up the launcher, then startPayment(showPaymentStatus = …), and the SDK presented the method list, the form, the result screen, and reported back through your lambdas.
In the unified API the method list is no longer implicit. Transaction.start(activity, paymentSelected) always requires a non-null PaymentMethodSelected, so the Full equivalent is a two-step flow: ask the SDK for the list with transaction.getPaymentMethodsViews(…), capture the user’s choice in onPaymentSelected, then call start(paymentSelected = selection) from your own Pay button.
Before you start
- Replace the
com.yuno.sdk.*imports with theircom.yuno.payments.sdk.api.*counterparts (the side-by-side lists them). 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
The SDK result screen is off by default now. Set
showStatusScreen = true to keep it.Controller
Entry points
Related
- Get Started. Full unified-API walkthrough.
- Payment Methods List. The new
getPaymentMethodsViewsAPI. TransactionConfig. Complete field reference.- Migration / Lite. The simpler case (single pre-selected method).