Skip to main content
Yuno.enrollPayment ran the enrollment flow end-to-end: the SDK read the method to enroll from the customer session, rendered the form and the result screen. The unified equivalent is the default behavior of Transaction.start(paymentSelected:). No controller overrides beyond onStatus.

Before you start

  • Replace import YunoSDK with import SdkPayments. Your public API key and the customer sessions your backend creates do not change (Before you begin).
  • There is no payment to create: createPayment is not invoked during enrollment, so overriding it has no effect.

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