Code Monkey home page Code Monkey logo

Comments (11)

TrongHoang21 avatar TrongHoang21 commented on May 18, 2024

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.

dat0609 avatar dat0609 commented on May 18, 2024

[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.

phuc16102001 avatar phuc16102001 commented on May 18, 2024

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.

haseoleonard avatar haseoleonard commented on May 18, 2024

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.

phuc16102001 avatar phuc16102001 commented on May 18, 2024

@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.

haseoleonard avatar haseoleonard commented on May 18, 2024

@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.

dat0609 avatar dat0609 commented on May 18, 2024

check thử log stream chưa b

from payment.

haseoleonard avatar haseoleonard commented on May 18, 2024

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.

phuc16102001 avatar phuc16102001 commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.