YunoSdk.generateToken tokenized it, your backend created the payment, and YunoSdk.continueCardPayment ran the pending action, such as a 3DS challenge, and resolved with the final state. In the unified API you pass the data you collected as transactionData on the PaymentMethodSelected. The SDK skips its form, tokenizes, hands you the token in createPayment, runs 3DS and reports the result through onStatus.
Before you start
- Upgrade
@yuno-payments/yuno-sdk-react-nativeto 2.0.0 and runpod install. Your public API key and the checkout sessions your backend creates do not change (Before you begin). - On Android,
minSdkVersionis now 23. If yourandroid/build.gradleapplies the Compose compiler plugin to the Yuno module (a 1.x workaround), remove that block: with 2.0.0 the build fails with “The Compose Compiler requires the Compose Runtime to be on the class path”. - 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. New: no legacy counterpart. The last column is the only thing you have to do beyond the rename.Initialization and config
Controller
Entry points
Related
TransactionData. Shape of the pre-collected data.createPayment. The token round trip.- Payment Methods List. Combine the SDK’s list for method selection with your own data collection.