We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 575d204 commit 8c8db97Copy full SHA for 8c8db97
1 file changed
README.md
@@ -20,11 +20,23 @@ Before using application do add another dependent cordova plugin
20
[cordova-plugin-inappbrowser](https://www.npmjs.com/package/cordova-plugin-inappbrowser)
21
22
```
23
+// Init Payment
24
CustomPayment.startPayment({
25
url: 'YOUR_PAYMENT_REDIRECT_URL',
26
callbackErrorURL: 'YOUR_PAYMENT_FAILURE_URL',
27
callbackSuccessURL: 'YOUR_PAYMENT_SUCCESS_URL'
28
})
29
+
30
+// Return Payment Response Event
31
+window.addEventListener('paymentmessage', this.paymentCallBack)
32
33
+function paymentCallBack(e) {
34
+ if(typeof e.detail != 'undefined') {
35
+ console.debug(e.detail.data, 'paramsparams1')
36
+ } else {
37
+ console.debug(e, 'other paramsparamsparams')
38
+ }
39
+}
40
41
42
### All Params
0 commit comments