Skip to main content
Render enrollment let you embed the SDK’s enrollment form inside your own layout. You got a YunoEnrollmentRenderFlowProtocol, asked it for a formView, and called submitForm() from your own button. It also exposed needSubmit: Bool to tell 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 form view together with a TransactionProcess you call onSubmit() on.

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

Controller

Views

Entry points