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 YunoSDKwithimport SdkPayments. 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
The SDK result screen is off by default now. Set
showStatusScreen: true to keep it.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).