Code Monkey home page Code Monkey logo

Comments (11)

mrkhoa99 avatar mrkhoa99 commented on June 24, 2024

@quandangminh2107 can you try to search through the module with keywords: requestType and capture?

from momo-wallet.

quandangminh2107 avatar quandangminh2107 commented on June 24, 2024

@mrkhoa99 I found it at "Gateway/Request/AbstractDataBuilder.php" as below:
image
I don't know if the variable PAY_URL_TYPE affects the variable REQUEST_TYPE or not. And if I want to change requestType to another value (For example: set requestType = "payWithATM" to pay using MoMo's domestic payment gateway that supports it, where do I have to adjust? Please help me know.
Thank you very much.

from momo-wallet.

thaopw avatar thaopw commented on June 24, 2024

@quandangminh2107 We have updated a new version to support 3 payment methods: payWithATM, payWithCC and Wallet. Please pull and use latest tag.

from momo-wallet.

quandangminh2107 avatar quandangminh2107 commented on June 24, 2024

@thaopw Thank you for the new version. I have pulled the new version and tested it. But when I choose MoMo Wallet to make a payment, it shows me exception as follows:
"(Magento\Payment\Gateway\Command\CommandException(code: 0): Something went wrong when get pay url. at MomoWallet/Gateway/Command/GetPayUrlCommand.php:93)"
I have checked the response and it still returns the payURL as follows:
1
Another issue is that when I click the Pay URL from the response above, it still shows me the Payment Page.
2
But when I click "Return" button, it shows me like this:
3
Please support me to fix these issues.
Thank in advance

from momo-wallet.

thaopw avatar thaopw commented on June 24, 2024

I think something went wrong when getting pay url, please ensure your request is correct.

from momo-wallet.

quandangminh2107 avatar quandangminh2107 commented on June 24, 2024

I have checked the payment response and it still returns the payUrl as follows:
1
So I'm sure that my request is correct.

from momo-wallet.

quandangminh2107 avatar quandangminh2107 commented on June 24, 2024

@thaopw Please help me to fix this issue.
Thank in advance.

from momo-wallet.

quandangminh2107 avatar quandangminh2107 commented on June 24, 2024

@thaopw Please help me to fix this issue.
Thank in advance.

from momo-wallet.

quandangminh2107 avatar quandangminh2107 commented on June 24, 2024

@thaopw I try to log the error and it shows me the function validateSignature() returns false so could you help me to fix this, please?
Thank you in advance.
image
image

from momo-wallet.

quandangminh2107 avatar quandangminh2107 commented on June 24, 2024

@thaopw I checked the function validateSignature() in AbstractResponseValidator class and I saw that it compares the signature return from the response with the signature return from the authorization but when I rechecked the response, it doesn't have the signature value in the response. Help me, please.
image
image

from momo-wallet.

mrkhoa99 avatar mrkhoa99 commented on June 24, 2024

@quandangminh2107 thank you for details. I think the structure of Momo's response has been changed. In this case, you need to change the GetPayUrlValidator. From the di xml, you need to change the validator class.

image

from momo-wallet.

Related Issues (6)

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.