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
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
What is the reason behind this error?
The text was updated successfully, but these errors were encountered:
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
What is the reason behind this error?
The text was updated successfully, but these errors were encountered: