Add a condition to display internet banking payment form.
Modify internet banking payment form template and CSS to work with PrestaShop 1.7.
Refactor PHP source code, extract method to generate card payment form and internet banking payment form.
Remove an unused template, inapplicable_internet_banking_payment.tpl. The message in this template has been shared and used by using template inapplicable_payment.tpl.
Remove a function, hookPayment(). This function is not using in PrestaShop 1.7.
3. Quality assurance
Environments:
Platform: PrestaShop 1.7.2.3
Omise plugin: Omise PrestaShop 1.2
PHP: 5.6.31
Web browsers: Google Chrome 62.0, Mozilla Firefox 56.0.2, Opera 48.0, and Safari 11.0
Details:
There are 2 test cases.
The current currency is applicable such as THB, display internet banking payment form.
The current currency is not applicable such as USD, display inapplicable payment message.
Install and enable Omise payment module.
At PrestaShop back office, Omise configuration page, enable internet banking payment.
Go to PrestaShop front office, make sure current currency is applicable such as THB.
Proceed checkout.
The screenshot below shows Omise internet banking payment form on Google Chrome 62.0.
The screenshot below shows Omise internet banking payment form on Mozilla Firefox 56.0.2.
The screenshot below shows Omise internet banking payment form on Opera 48.0.
The screenshot below shows Omise internet banking payment form on Safari 11.0.
The screenshot below shows inapplicable payment message due the the current currency is not supported.
1. Objective
Display internet banking payment form.
Related information:
2. Description of change
inapplicable_internet_banking_payment.tpl
. The message in this template has been shared and used by using templateinapplicable_payment.tpl
.hookPayment()
. This function is not using in PrestaShop 1.7.3. Quality assurance
Environments:
Details:
There are 2 test cases.
The screenshot below shows Omise internet banking payment form on Google Chrome 62.0.
The screenshot below shows Omise internet banking payment form on Mozilla Firefox 56.0.2.
The screenshot below shows Omise internet banking payment form on Opera 48.0.
The screenshot below shows Omise internet banking payment form on Safari 11.0.
The screenshot below shows inapplicable payment message due the the current currency is not supported.
4. Impact of the change
-
5. Priority of change
Normal
6. Additional notes
-