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

Network Error when I try to verify from React JS #39

Open
Abhinav0057 opened this issue Sep 4, 2022 · 0 comments
Open

Network Error when I try to verify from React JS #39

Abhinav0057 opened this issue Sep 4, 2022 · 0 comments

Comments

@Abhinav0057
Copy link

When khalti returns token for a transaction, then I tried calling the verify request to the khalti API but it says net::ERR_Failed
Here is my code reference for calling the verify request:
axios({
url: "https://khalti.com/api/v2/payment/verify/",
method: "POST",
headers: {
Authorization: "my_secret_key",
},
data: {
token: props.token, // this contains my token key provided by khalti in the response
amount: props.amount, // this contains the amount
},
})
//Here Both the token and amount along with the Authorization are correct
But I receive an error like this
b4b67e51-bf21-48a5-936e-497c7c4888fc

What is the reason behind this error?

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

1 participant