Skip to main content
Headless enrollment was a pure-tokenization call: you collected the data in your own UI, called YunoSdk.continueEnrollment(collectedData, customerSession, countryCode), and got back { vaultedToken }. In the unified API it is the same enrollment Transaction with transactionData set on the PaymentMethodSelected. The SDK skips its form, runs the enrollment and reports completion through onStatus.

Before you start

  • Upgrade @yuno-payments/yuno-sdk-react-native to 2.0.0 and run pod install. Your public API key and the customer sessions your backend creates do not change (Enrollment: before you start).
  • On Android, minSdkVersion is now 23. If your android/build.gradle applies 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: createPayment is 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