@yuno-payments/yuno-sdk-react-native 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,7 +197,7 @@ class YunoSdkModule(private val reactContext: ReactApplicationContext) :
197
197
  callbackOTT = { token ->
198
198
  notifyOneTimeToken(token)
199
199
  },
200
- callbackPaymentState = { state ->
200
+ callbackPaymentState = { state, subState ->
201
201
  notifyPaymentState(state)
202
202
  }
203
203
  )
@@ -477,7 +477,7 @@ class YunoSdkModule(private val reactContext: ReactApplicationContext) :
477
477
  showPaymentStatus = showPaymentStatus,
478
478
  checkoutSession = checkoutSession,
479
479
  countryCode = countryCode,
480
- callbackPaymentState = { paymentState ->
480
+ callbackPaymentState = { paymentState, subState ->
481
481
  sendPaymentStatusEvent(paymentState)
482
482
  }
483
483
  )
@@ -562,7 +562,7 @@ class YunoSdkModule(private val reactContext: ReactApplicationContext) :
562
562
  vaultedToken = vaultedToken
563
563
  ),
564
564
  showPaymentStatus = showPaymentStatus,
565
- callbackPaymentState = { paymentState ->
565
+ callbackPaymentState = { paymentState, subState ->
566
566
  sendPaymentStatusEvent(paymentState)
567
567
  promise.resolve(paymentState ?: "UNKNOWN")
568
568
  }
package/ios/YunoSdk.swift CHANGED
@@ -81,8 +81,10 @@ class YunoSdk: RCTEventEmitter {
81
81
  do {
82
82
  self.currentCountryCode = countryCode
83
83
 
84
- // Parse language
85
- if let lang = yunoConfig["lang"] as? String {
84
+ // Parse language (check both "language" and "lang" for backwards compatibility)
85
+ if let language = yunoConfig["language"] as? String {
86
+ self.currentLanguage = language
87
+ } else if let lang = yunoConfig["lang"] as? String {
86
88
  self.currentLanguage = lang
87
89
  }
88
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/yuno-sdk-react-native",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Yuno React Native SDK empowers you to create seamless payment experiences in your native Android and iOS apps built with React Native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",