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.*andcom.yuno.presentation.*imports with theircom.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
workflowmust match that decision:
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
Related
showView. Full reference for the controller andTransactionProcess.showLoading. Loading-state controller.TransactionConfig. Complete field reference.- Migration / Lite. When you don’t need to embed the form yourself.