startEnrollment ran the enrollment flow end-to-end: the merchant picked the method, and the SDK rendered the form and the result screen. The unified equivalent is Transaction.start(activity = this, paymentSelected = PaymentMethodSelected(paymentMethodType = "<type>")): no transactionData, the SDK renders the form for that type. No controller overrides beyond onStatus.
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 customer sessions your backend creates do not change (Before you begin). - There is no payment to create:
createPaymentis 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
Controller
Entry points
Related
- Enrollment feature. Unified-API enrollment walkthrough.
- Render enrollment. Embed the form yourself.
- Headless enrollment. Collect data in your own UI.
TransactionConfig. Complete field reference (includingcustomerSession).