You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i wrote a code like this for Paytm, when i click on button it will call the PayNow function, the PayNow function will open the popup and it shows this error "404 Not Found".
Here is my code.
generateOrderId() {
let cid = "";
let possible = "0123456789";
for (var i=0; i < 8; i++) {
cid += possible.charAt(Math.floor(Math.random() * possible.length));
}
return cid;
}
var order_id = this.generateOrderId();
var cust_id = this.generateOrderId();
Hi, i wrote a code like this for Paytm, when i click on button it will call the PayNow function, the PayNow function will open the popup and it shows this error "404 Not Found".
Here is my code.
generateOrderId() {
let cid = "";
let possible = "0123456789";
for (var i=0; i < 8; i++) {
cid += possible.charAt(Math.floor(Math.random() * possible.length));
}
return cid;
}
var order_id = this.generateOrderId();
var cust_id = this.generateOrderId();
PayNow() {
const details = {
generationUrl: "https://gym.index-i.com/generate_checksum", //working fine
validationUrl: "https://gym.index-i.com/verify_checksum", //working fine
mode:'Staging',
mid: 'HznPqs08498663574158', //Staging
industryType: 'Retail', //Staging
website: 'WEBSTAGING', //Staging
channel: 'WAP', //Staging
amount: '10.00',
orderId: order_id,
email: '[email protected]',
phone: '9741104021',
custId: cust_id,
checksumhash: resp.data.CHECKSUMHASH, // generating from server side
callback: "https://securegw-stage.paytm.in/theia/paytmCallback?ORDER_ID="+order_id
};
paytm.startPayment(details)
}
How to solve this error, any help is Appreciated.
Thanks in Advance
The text was updated successfully, but these errors were encountered: