YunoEnrollmentFragmentController and a YunoEnrollmentRenderListener.showView(fragment, needSubmit) callback. The needSubmit flag told you whether the form required a submit button at all.
In the unified API the same pattern is expressed by overriding showView: the SDK delivers the fragment together with a TransactionProcess you call onSubmit() on. As with Lite enrollment, you pass a PaymentMethodSelected carrying the method type: start(paymentSelected) never accepts null.
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
Views
Entry points
Related
- Enrollment feature. Unified-API enrollment walkthrough.
- Lite enrollment. SDK-driven, no view embedding.
- Headless enrollment. Collect data in your own UI.
showView. The controller you override here.