Skip to main content
Full mode handed off the entire UI to the SDK: you called 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 their com.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 workflow must match that decision:
A default-workflow session with no createPayment override ends in INTERNAL_ERROR: the backend rejects the SDK’s payment creation. See createPayment.

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