- Issue created by @tdnshah
- Merge request !4Issue #3489439 Fix INSTAMOJO_LIVE_API_URL constant value to remove payment-requests/ from it. → (Open) created by tdnshah
While checkout it was found that an unexpected error is accurring.
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.
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
Active
1.0
Code