Comments (11)
@quandangminh2107 can you try to search through the module with keywords: requestType
and capture
?
from momo-wallet.
@mrkhoa99 I found it at "Gateway/Request/AbstractDataBuilder.php" as below:
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.
@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.
@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:
Another issue is that when I click the Pay URL from the response above, it still shows me the Payment Page.
But when I click "Return" button, it shows me like this:
Please support me to fix these issues.
Thank in advance
from momo-wallet.
I think something went wrong when getting pay url, please ensure your request is correct.
from momo-wallet.
I have checked the payment response and it still returns the payUrl as follows:
So I'm sure that my request is correct.
from momo-wallet.
@thaopw Please help me to fix this issue.
Thank in advance.
from momo-wallet.
@thaopw Please help me to fix this issue.
Thank in advance.
from momo-wallet.
@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.
from momo-wallet.
@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.
from momo-wallet.
@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.
from momo-wallet.
Related Issues (6)
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 momo-wallet.