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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-bootpay-api",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.2",
4
4
  "description": "React Native를 위한 bootpay 라이브러리 입니다.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -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);