Skip to content

404 Not Found #19

Description

@ajaykumarbl

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: 'ajay402sjbit@gmail.com',
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions