With RMS payment method, when customer cancels the transaction and redirect back to the plugin, sometimes, randomly, the charge it fetches from API has the status value as pending instead of cancelled . This will redirect customer to success page instead of back to checkout page.
To fix this, we have added a delay of 0.5 secs before calling the charge API.
3. Quality assurance
Switch to Malaysia PSP
Checkout with RMS payment method.
Cancel the transaction
Note: You have to try multiple cancel transaction as this issue occurs in random.
You should see the following page, not the success page.
1. Objective
Added a delay of 0.5 seconds before calling the charge API in callback class so that we can fetch correct charge status.
Jira Ticket: #447
2. Description of change
With RMS payment method, when customer cancels the transaction and redirect back to the plugin, sometimes, randomly, the charge it fetches from API has the status value as pending instead of cancelled . This will redirect customer to success page instead of back to checkout page.
To fix this, we have added a delay of 0.5 secs before calling the charge API.
3. Quality assurance
Note: You have to try multiple cancel transaction as this issue occurs in random.
You should see the following page, not the success page.
🔧 Environments: