@yuno-payments/yuno-sdk-react-native 1.0.31-beta.1 → 1.0.31-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.
- package/ios/YunoSdk.swift +4 -3
- package/package.json +1 -1
package/ios/YunoSdk.swift
CHANGED
|
@@ -344,15 +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)
|
|
353
355
|
}
|
|
354
356
|
|
|
355
|
-
// Return initial processing status
|
|
356
357
|
resolver("PROCESSING")
|
|
357
358
|
} catch {
|
|
358
359
|
rejecter("SEAMLESS_ERROR", "Failed to start seamless payment: \(error.localizedDescription)", error)
|
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.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",
|