Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Not Found #19

Open
ajaykumarbl opened this issue Jan 11, 2019 · 2 comments
Open

404 Not Found #19

ajaykumarbl opened this issue Jan 11, 2019 · 2 comments

Comments

@ajaykumarbl
Copy link

ajaykumarbl commented Jan 11, 2019

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

@ajaykumarbl ajaykumarbl changed the title 404 page not found 404 Not Found Jan 11, 2019
@ajayshanker901
Copy link

You can check for production...
https://securegw.paytm.in/theia/paytmCallback?ORDER_ID="+order_id
and mode:'Production'

@ajaykumarbl
Copy link
Author

Thank you @ajayshanker901. I'll check that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants