Skip to main content
Render mode lets you embed the SDK’s payment form inside your own layout: you called startPaymentRender(…) and received a YunoPaymentFragmentController plus a YunoPaymentRenderListener.showView(fragment) callback that delivered the SDK’s Fragment. You placed it in your layout and called controller.submitForm() (or controller.continuePayment() for the 3DS step) from your own button. In the unified API the same pattern is expressed by overriding showView. The SDK still hands you a Fragment; you receive it together with a TransactionProcess control object that exposes onSubmit() and onClose(). Continuation (3DS / redirect) is no longer a separate call. The SDK emits a second showView with step = ACTION when it needs to.

Before you start

  • Replace the com.yuno.sdk.*, com.yuno.payments.features.* and com.yuno.presentation.* imports with their com.yuno.payments.sdk.api.* counterparts (the side-by-side lists them). Your public API key and the checkout sessions your backend creates do not change (Before you begin).
  • Decide who creates the payment. The checkout session’s workflow must match that decision:
A default-workflow session with no createPayment override ends in INTERNAL_ERROR: the backend rejects the SDK’s payment creation. See createPayment.

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. The last column is the only thing you have to do beyond the rename.

Initialization and config

Controller

Views

Entry points