Comments (11)
em sử dụng Nodejs cũng gặp vấn đề này. Server Nodejs đã tạo một route post để lắng nghe ipnUrl nhưng không nhận được gì, redirectUrl thì vẫn hoạt động tốt
from payment.
[HttpPost("callback")] public Task<PaymentResponseModel> Callback([FromBody] MomoRequestModel dto) { // update status here }
note MomoRequestModel: dto của momo(amount, extraData, orderId ...)
đây là code .net của mình để xử lý ipn khi thanh toán từ momo thành công, b có thể tham khảo và imp theo nodejs
from payment.
em sử dụng Nodejs cũng gặp vấn đề này. Server Nodejs đã tạo một route post để lắng nghe ipnUrl nhưng không nhận được gì, redirectUrl thì vẫn hoạt động tốt
Bên mình NodeJS có nhận IPN nhé, nhưng mà chỉ nhận 1 lần thôi. Thường mình thấy với Paypal mà không repsonse lại IPN thì nó sẽ gửi lại IPN tới khi xác nhận bằng status(204). Mà bên Momo chỉ gửi đúng 1 lần. Ngoài ra, khi mà thanh toán xong thì bên ví của merchant không nhận được tiền, tuy dashboard thì vẫn hiện số tiền đã thanh toán.
from payment.
mình đang sử dụng ASP.NET 6 và cũng gặp vấn đề này request thành công có ipnUrl trỏ tới endpoint xử lý IPN tại BE nhưng không hề nhận được request. Check log Http cũng không có thông báo nhận được request nào.
from payment.
@haseoleonard Hiện bạn đang dùng local hay host lên rồi á? Bạn thử host lên xong đổi ipnUrl lại xem?
from payment.
@phuc16102001 mình chạy trên host staging rồi nhưng vẫn không nhận được request nào bạn ạ
from payment.
check thử log stream chưa b
from payment.
hiện tại mình Đã check hết tất cả log và mình k nhận được request nào có UserAgent từ Momo Gateway hay là request đến endpoint ipn
from payment.
@haseoleonard bạn thử gọi bằng Postman xem nhe, xong rồi so lại với code của bạn. Ngoài ra bạn có thể tham khảo project mình có integrate Momo vào á Huimitu
from payment.
Related Issues (20)
- App-in-App integration: payment confirm got issue with hashed signature HOT 1
- Getting error 99 or app crash on testing environment
- Giải mã hash thất bại HOT 3
- NodeJS - Giải mã hash thất bại HOT 3
- [Gin - Golang] - Invalid character 'p' looking for beginning of value
- Bug report HOT 1
- Otp HOT 1
- Không tải được app momo ở môi trường test
- Error when use accesskey from test env HOT 1
- Code mẫu thừa tham số payType nên checksum bị lỗi
- Xác thực thanh toán với signature ở Response Url HOT 1
- Momo items not working
- Merchant wallet not receive money
- Can not register a wallet on MoMo Test App IOS
- Integrated test case documents cannot be downloaded
- Refund trong môi trường TEST.
- Opencart 3 module?
- Momo responds with bad format request: invalid signature
- Signature đúng format và đủ các attribute nhưng Response bị Status: 400, message: Bad format request, resultCode: 20 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 payment.