Skip to main content
Render enrollment lets you embed the SDK’s enrollment form inside your own layout. You got a 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 their com.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: 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

Controller

Views

Entry points