Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
codeeshop-oc committed Mar 30, 2022
1 parent 575d204 commit 8c8db97
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,23 @@ Before using application do add another dependent cordova plugin
[cordova-plugin-inappbrowser](https://www.npmjs.com/package/cordova-plugin-inappbrowser)

```
// Init Payment
CustomPayment.startPayment({
url: 'YOUR_PAYMENT_REDIRECT_URL',
callbackErrorURL: 'YOUR_PAYMENT_FAILURE_URL',
callbackSuccessURL: 'YOUR_PAYMENT_SUCCESS_URL'
})
// Return Payment Response Event
window.addEventListener('paymentmessage', this.paymentCallBack)
function paymentCallBack(e) {
if(typeof e.detail != 'undefined') {
console.debug(e.detail.data, 'paramsparams1')
} else {
console.debug(e, 'other paramsparamsparams')
}
}
```

### All Params
Expand Down

0 comments on commit 8c8db97

Please # to comment.