@yuno-payments/yuno-sdk-react-native 1.1.0-beta.0 → 1.1.0-beta.2
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.
|
@@ -314,16 +314,13 @@ class YunoSdkModule(private val reactContext: ReactApplicationContext) :
|
|
|
314
314
|
|
|
315
315
|
// Extract configuration from config map
|
|
316
316
|
val language = if (config.hasKey("language")) config.getString("language") else null
|
|
317
|
-
val cardType = if (config.hasKey("cardType")) config.getString("cardType") else null
|
|
318
317
|
val savedCardEnable = if (config.hasKey("saveCardEnabled")) config.getBoolean("saveCardEnabled") else false
|
|
319
|
-
|
|
320
|
-
|
|
318
|
+
|
|
321
319
|
// Call the static initialize method
|
|
322
320
|
initialize(
|
|
323
321
|
applicationContext = reactContext.applicationContext,
|
|
324
322
|
apiKey = apiKey,
|
|
325
323
|
language = language,
|
|
326
|
-
cardType = cardType ?: "ONE_STEP",
|
|
327
324
|
savedCardEnable = savedCardEnable
|
|
328
325
|
)
|
|
329
326
|
|
package/ios/YunoSdk.swift
CHANGED
|
@@ -612,7 +612,7 @@ extension YunoSdk {
|
|
|
612
612
|
let collectedData = try decoder.decode(TokenCollectedData.self, from: jsonData)
|
|
613
613
|
|
|
614
614
|
// Create API client using the native SDK's factory method
|
|
615
|
-
let apiClient = Yuno.apiClientPayment(
|
|
615
|
+
let apiClient = try Yuno.apiClientPayment(
|
|
616
616
|
countryCode: countryCode,
|
|
617
617
|
checkoutSession: checkoutSession
|
|
618
618
|
)
|
|
@@ -656,7 +656,7 @@ extension YunoSdk {
|
|
|
656
656
|
|
|
657
657
|
do {
|
|
658
658
|
// Create API client using the native SDK's factory method
|
|
659
|
-
let apiClient = Yuno.apiClientPayment(
|
|
659
|
+
let apiClient = try Yuno.apiClientPayment(
|
|
660
660
|
countryCode: countryCode,
|
|
661
661
|
checkoutSession: checkoutSession
|
|
662
662
|
)
|
|
@@ -715,7 +715,7 @@ extension YunoSdk {
|
|
|
715
715
|
let collectedData = try decoder.decode(EnrollmentCollectedData.self, from: jsonData)
|
|
716
716
|
|
|
717
717
|
// Create API client using the native SDK's factory method
|
|
718
|
-
let apiClient = Yuno.apiClientEnroll(
|
|
718
|
+
let apiClient = try Yuno.apiClientEnroll(
|
|
719
719
|
countryCode: countryCode,
|
|
720
720
|
customerSession: customerSession
|
|
721
721
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/yuno-sdk-react-native",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.2",
|
|
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",
|