YunoSdk.enrollmentPayment opened the SDK’s enrollment form for a customer session and reported the outcome through onEnrollmentStatus. In the unified API enrollment is the same Transaction as a payment: pass customerSession instead of checkoutSession and call start(). The SDK presents the form, enrolls the method 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 customer sessions your backend creates do not change (Enrollment: before you start). - 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”. - There is no payment to create:
createPaymentis not invoked during enrollment.
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
The vaulted token is not returned to the app. After the success status arrives, fetch it from your backend’s list-customer-payment-methods endpoint and store it against your customer.
Related
- Enrollment. Unified-API enrollment walkthrough.
- Headless enrollment. Enroll with data you collected yourself.
Status. Values and substatus.