Comments (6)
Are you trying to communicate api from client side ??
from docs.khalti.com.
yeah
from docs.khalti.com.
I tried to implement from the server but no luck. Got this
xhr.js:184 GET http://localhost:7655/khalti/M6aERNTpGNk9wukyi8n22a/1000/my_secret_key (Internal Server Error)
above is my own API which eventually calls merchant API with token, amount and secret key in req.params. I extract these from req.params and call the API as:
let data = {
token: req.params.token,
amount: req.params.amount,
};
let config = {
headers: {
Authorization: "MY-TEST-SECRET-KEY",
},
};
axios
.post(
"https://khalti.com/api/v2/payment/verify/",
data,
config
)
.then((response) => {
console.log(response.data);
console.log("Yay!, It's done");
})
.catch((error) => {
console.log(error);
});
from docs.khalti.com.
Any update on this??
from docs.khalti.com.
any update?
from docs.khalti.com.
geez, it's still an open issue
from docs.khalti.com.
Related Issues (20)
- Pipx has been deprecated.
- Get Merchant Amount
- Webhook?
- Postman Collection HOT 1
- addons for wowonder php script
- productUrl required HOT 1
- Client side web SDK error on "#" character on GET request to initiate payment HOT 1
- Network Error when I try to verify from React JS
- Getting CORS error for epayment/initiate api while impleme khalti-epayment HOT 5
- Example needed for Partially Refunded epayment lookup api.
- invalid token in new epayment gateway HOT 2
- Open api specification for khlati epayment api is not present in documentation, please add the specification which will make easier to get started
- image to understand khalti payment process it not good in khalti's dark mode
- Do Khalti api has support for Idempotency ?
- Server side verification example for C# HOT 1
- Invalid Token Error HOT 1
- CORS Issue on mvc .net core web app
- Ruby Eg for Transaction
- Server side verification for Android/Java HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.khalti.com.