react-native-bootpay-api 4.0.0-beta.1 → 4.0.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.
- package/package.json +1 -1
- package/src/BootpayWebView.js +10 -10
package/package.json
CHANGED
package/src/BootpayWebView.js
CHANGED
|
@@ -158,12 +158,12 @@ export class BootpayWebView extends Component {
|
|
|
158
158
|
const script = "Bootpay." + requestMethod +
|
|
159
159
|
`(${JSON.stringify(payload)})` +
|
|
160
160
|
".then( function (res) {" +
|
|
161
|
-
confirm() +
|
|
162
|
-
issued() +
|
|
163
|
-
done() +
|
|
161
|
+
this.confirm() +
|
|
162
|
+
this.issued() +
|
|
163
|
+
this.done() +
|
|
164
164
|
"}, function (res) {" +
|
|
165
|
-
error() +
|
|
166
|
-
cancel() +
|
|
165
|
+
this.error() +
|
|
166
|
+
this.cancel() +
|
|
167
167
|
"})";
|
|
168
168
|
|
|
169
169
|
this.callJavaScript(script);
|
|
@@ -247,12 +247,12 @@ export class BootpayWebView extends Component {
|
|
|
247
247
|
transactionConfirm = () => {
|
|
248
248
|
const script = "Bootpay.confirm()" +
|
|
249
249
|
".then( function (res) {" +
|
|
250
|
-
confirm() +
|
|
251
|
-
issued() +
|
|
252
|
-
done() +
|
|
250
|
+
this.confirm() +
|
|
251
|
+
this.issued() +
|
|
252
|
+
this.done() +
|
|
253
253
|
"}, function (res) {" +
|
|
254
|
-
error() +
|
|
255
|
-
cancel() +
|
|
254
|
+
this.error() +
|
|
255
|
+
this.cancel() +
|
|
256
256
|
"})";
|
|
257
257
|
|
|
258
258
|
this.callJavaScript(script);
|