@yuno-payments/yuno-sdk-react-native 1.0.31-beta.1 → 1.0.31-beta.3
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.
- package/ios/YunoSdk.swift +5 -5
- package/package.json +1 -1
package/ios/YunoSdk.swift
CHANGED
|
@@ -344,16 +344,16 @@ class YunoSdk: RCTEventEmitter {
|
|
|
344
344
|
viewController: RCTPresentedViewController()
|
|
345
345
|
)
|
|
346
346
|
|
|
347
|
-
Task {
|
|
348
|
-
|
|
347
|
+
Task { @MainActor [weak self] in
|
|
348
|
+
guard let self = self else { return }
|
|
349
|
+
let result = await Yuno.startPaymentSeamlessLite(
|
|
349
350
|
with: seamlessParams,
|
|
350
351
|
paymentSelected: paymentSelected,
|
|
351
352
|
showPaymentStatus: showPaymentStatus
|
|
352
353
|
)
|
|
354
|
+
self.sendPaymentStatusEvent(result: result)
|
|
355
|
+
resolver(self.mapResultToString(result))
|
|
353
356
|
}
|
|
354
|
-
|
|
355
|
-
// Return initial processing status
|
|
356
|
-
resolver("PROCESSING")
|
|
357
357
|
} catch {
|
|
358
358
|
rejecter("SEAMLESS_ERROR", "Failed to start seamless payment: \(error.localizedDescription)", error)
|
|
359
359
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/yuno-sdk-react-native",
|
|
3
|
-
"version": "1.0.31-beta.
|
|
3
|
+
"version": "1.0.31-beta.3",
|
|
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",
|