[ENGA3-520]: Fixed the issue of FPX redirecting to cart page with invalid order status. Also added a delay in redirect process before fetching charge status. #389
Currently our plugin checks for processing and pending order state only. This caused issue when the webhook updated the order state to failed before customer reaching the redirect URL. So, we added a check for failed order state as well for Offsite.
Plus, we added a delay of 0.5 secs in Offsite and Threedsecure redirect flow before fetching the charge. This delay will be removed once the payment flow is changed in the backend.
3. Quality assurance
Configuration settings
Set webhook to Yes
Set Generate invoice at order status to Processing
Test
Checkout with FPX
Choose Maybank2U
Click cancel at Maybank2U login page.
🔧 Environments:
Specify the details of your test environments, including, for each, the platform version (on which the plugin was run), the Omise plugin version, and the versions of your system software such as PHP or Ruby.
1. Objective
Fixed the issue of FPX redirecting to cart page with invalid order status. Also added a delay in redirect process before fetching charge status.
Jira Ticket: #520
2. Description of change
Currently our plugin checks for processing and pending order state only. This caused issue when the webhook updated the order state to failed before customer reaching the redirect URL. So, we added a check for failed order state as well for Offsite.
Plus, we added a delay of 0.5 secs in Offsite and Threedsecure redirect flow before fetching the charge. This delay will be removed once the payment flow is changed in the backend.
3. Quality assurance
Configuration settings
Yes
Test
🔧 Environments:
Specify the details of your test environments, including, for each, the platform version (on which the plugin was run), the Omise plugin version, and the versions of your system software such as PHP or Ruby.