For the 3-D Secure payment, if charge is failed, update the order status to be Canceled instead of remain it Processing in progress.
Related information:
Related issue(s): #25
Related ticket: -
2. Description of change
At the 3-D Secure payment controller class, add a command to update the order status to be canceled, if it has an error from the Omise charge process.
3. Quality assurance
Environments:
Platform: PrestaShop 1.6.1.14
Omise plugin: Omise-PrestaShop 1.1
Omise-PHP: 2.6.0
PHP: 5.6.30
Mozilla Firefox: 54.0
Details:
There are 2 test cases below.
Test create failed 3-D Secure charge with the condition, Fail Pre-auth aka Invalid Security Code, expect that the order status is Canceled.
Test create failed 3-D Secure charge with the condition, Fail 3DS Card Enrollment, expect that the order status is Canceled.
Prerequisite
At the back-end
Make sure that the public key and secret key is the keys from the Omise account that has been enabled 3-D Secure payment
Enable 3-D Secure payment, by set the setting for 3-D Secure support to Yes
The screenshot below shows the Omise configuration at the back-end. In the red box, it is the setting for 3-D Secure payment.
Test case 1:
At the front-end
Checkout an order
At the payment step, Omise payment form, use the card number from the Omise testing for Fail Pre-auth aka Invalid Security Code.
For an example, 4111 1111 1116 0001.
The expectation is meet. The screenshot below shows the PrestaShop order detail at the back-end. The current order status is canceled. Note that in the red box, the transaction ID is Omise charge ID. The PrestaShop order status and Omise charge status are consistent.
The screenshot below shows the Omise charge detail at the Omise dashboard.
Test case 2:
At the front-end
Checkout an order
At the Omise payment form, use the card number from the Omise testing for Fail 3DS Card Enrollment.
For an example, 4111 1111 1115 0002.
The expectation is meet. The screenshot below shows the PrestaShop order detail at the back-end. The current order status is canceled. Note that in the red box, the transaction ID is Omise charge ID. The PrestaShop order status and Omise charge status are consistent.
The screenshot below shows the Omise charge detail at the Omise dashboard.
4. Impact of the change
This change impacts to only one payment process, 3-D Secure payment.
1. Objective
For the 3-D Secure payment, if charge is failed, update the order status to be Canceled instead of remain it Processing in progress.
Related information:
2. Description of change
At the 3-D Secure payment controller class, add a command to update the order status to be canceled, if it has an error from the Omise charge process.
3. Quality assurance
Environments:
Details:
There are 2 test cases below.
Test create failed 3-D Secure charge with the condition, Fail Pre-auth aka Invalid Security Code, expect that the order status is Canceled.
Test create failed 3-D Secure charge with the condition, Fail 3DS Card Enrollment, expect that the order status is Canceled.
Prerequisite
At the back-end
3-D Secure support
toYes
The screenshot below shows the Omise configuration at the back-end. In the red box, it is the setting for 3-D Secure payment.
Test case 1:
At the front-end
For an example,
4111 1111 1116 0001
.The expectation is meet. The screenshot below shows the PrestaShop order detail at the back-end. The current order status is canceled. Note that in the red box, the transaction ID is Omise charge ID. The PrestaShop order status and Omise charge status are consistent.
The screenshot below shows the Omise charge detail at the Omise dashboard.
Test case 2:
At the front-end
For an example,
4111 1111 1115 0002
.The expectation is meet. The screenshot below shows the PrestaShop order detail at the back-end. The current order status is canceled. Note that in the red box, the transaction ID is Omise charge ID. The PrestaShop order status and Omise charge status are consistent.
The screenshot below shows the Omise charge detail at the Omise dashboard.
4. Impact of the change
This change impacts to only one payment process, 3-D Secure payment.
5. Priority of change
Normal
6. Additional notes
-