@walletconnect/react-native-compat 2.23.2-canary.1 → 2.23.2-canary.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/RNWalletConnectPay.mm +27 -21
- package/package.json +1 -1
|
@@ -52,13 +52,15 @@ RCT_EXPORT_METHOD(getPaymentOptions:(NSString *)requestJson
|
|
|
52
52
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
53
53
|
reject:(RCTPromiseRejectBlock)reject)
|
|
54
54
|
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
dispatch_async(_queue, ^{
|
|
56
|
+
[self->_bridge getPaymentOptions:requestJson completion:^(NSString *result, NSError *error) {
|
|
57
|
+
if (error) {
|
|
58
|
+
reject(@"PAY_ERROR", error.localizedDescription, error);
|
|
59
|
+
} else {
|
|
60
|
+
resolve(result);
|
|
61
|
+
}
|
|
62
|
+
}];
|
|
63
|
+
});
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
/**
|
|
@@ -71,13 +73,15 @@ RCT_EXPORT_METHOD(getRequiredPaymentActions:(NSString *)requestJson
|
|
|
71
73
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
72
74
|
reject:(RCTPromiseRejectBlock)reject)
|
|
73
75
|
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
dispatch_async(_queue, ^{
|
|
77
|
+
[self->_bridge getRequiredPaymentActions:requestJson completion:^(NSString *result, NSError *error) {
|
|
78
|
+
if (error) {
|
|
79
|
+
reject(@"PAY_ERROR", error.localizedDescription, error);
|
|
80
|
+
} else {
|
|
81
|
+
resolve(result);
|
|
82
|
+
}
|
|
83
|
+
}];
|
|
84
|
+
});
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
/**
|
|
@@ -90,13 +94,15 @@ RCT_EXPORT_METHOD(confirmPayment:(NSString *)requestJson
|
|
|
90
94
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
91
95
|
reject:(RCTPromiseRejectBlock)reject)
|
|
92
96
|
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
dispatch_async(_queue, ^{
|
|
98
|
+
[self->_bridge confirmPayment:requestJson completion:^(NSString *result, NSError *error) {
|
|
99
|
+
if (error) {
|
|
100
|
+
reject(@"PAY_ERROR", error.localizedDescription, error);
|
|
101
|
+
} else {
|
|
102
|
+
resolve(result);
|
|
103
|
+
}
|
|
104
|
+
}];
|
|
105
|
+
});
|
|
100
106
|
}
|
|
101
107
|
|
|
102
108
|
+ (BOOL)requiresMainQueueSetup
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walletconnect/react-native-compat",
|
|
3
3
|
"description": "Native modules and shims for WalletConnect Protocol in React Native Projects",
|
|
4
|
-
"version": "2.23.2-canary.
|
|
4
|
+
"version": "2.23.2-canary.2",
|
|
5
5
|
"author": "WalletConnect, Inc. <walletconnect.com>",
|
|
6
6
|
"homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE.md",
|