Instamojo Live url gives error 404

Created on 24 November 2024, 29 days ago

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

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India tdnshah

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024