Skip to content

Commit bf11051

Browse files
committed
updated
1 parent f86fbb5 commit bf11051

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

www/CustomPayment.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const exec = require('cordova/exec');
22

33
const CONFIG = {
4-
url: "https://pay.gw.zetapay.in/",
4+
url: "",
55
target: '_blank',
66
options: "location=no,hidenavigationbuttons=yes,hideurlbar=yes,hardwareback=no,fullscreen=yes",
77
callbackSuccessURL: 'success',
@@ -72,7 +72,11 @@ async function loadStopCallBack(event) {
7272
}
7373

7474
function messageCallBack(params) {
75-
console.debug(params, 'messageCallBack params')
75+
console.debug(params, 'messageCallBack')
76+
window.dispatchEvent(new CustomEvent("paymentmessage", {
77+
bubbles: false,
78+
detail: params
79+
}))
7680
// if (event.origin !== "http://example.com")
7781
// return;
7882
}

0 commit comments

Comments
 (0)