Skip to content

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

@Abhinav0057

Description

@Abhinav0057

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions