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

Command icon 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

tdnshah created an issue. See original summary.

i-trokhanenko’s picture

Assigned: tdnshah » Unassigned
Status: Active » Needs review

i-trokhanenko’s picture

Status: Needs review » Reviewed & tested by the community
i-trokhanenko’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

i-trokhanenko’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.