Problem/Motivation
While checkout it was found that an unexpected error is accurring.
Steps to reproduce
Step 1: Install instamojo module
Step 2: Configure API Key, Auth Token and Salt.
Step 3: Select Mode Live
Step 4: Try to order a product and checkout.
At payment stage you will get an error staying unexpected error occured.
Proposed resolution
Investigating error it was found that the constant variable holding the API endpoint url has the parameter as payment-requests and this parameter is also added later in instamojo sdk based on request type so the url formed is as below
https://www.instamojo.com/api/1.1/payment-requests/payment-requests
which leads to 404 error
which should be
https://www.instamojo.com/api/1.1/payment-requests
Adding a patch that fixes the constant variable INSTAMOJO_LIVE_API_URL in file commerce_instamojo/src/PluginForm/OffsiteRedirect/PaymentOffsiteForm.php
Issue fork commerce_instamojo-3489439
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
i-trokhanenkoComment #5
i-trokhanenkoComment #6
i-trokhanenkoThanks!
Comment #7
i-trokhanenko