Display card payment form by using a PrestaShop 1.7 new API setAdditionalInformation() and reuse a function, displayPayment(), to be a parameter.
Unassign 2 variables, action and omise_title, that were passed from controller to view. PrestaShop 1.7 has its own submit payment mechanism which payment module need to follow. So, the action will be unused.
The title has been changed to display at the payment option instead. So, the omise_title displayed at the top of payment form is unnecessary and duplicated.
Align the size of elements in card payment form to fit with its parent.
Remove submit payment button. PrestaShop 1.7 has generated its own submit payment button. So, the submit payment button of module is unused.
3. Quality assurance
Environments:
Platform: PrestaShop 1.7.2.3
Omise plugin: Omise PrestaShop 1.2
PHP: 5.6.31
Details:
At the back office, install and enable the module, if the module is not installed or enabled.
Go to the front office and proceed the checkout.
The screenshot below shows the card payment form on PrestaShop 1.7.
The screenshot below shows the message when the customer checkout the order with unsupported currency such as USD.
1. Objective
Display card payment form.
Related information:
2. Description of change
Display card payment form by using a PrestaShop 1.7 new API
setAdditionalInformation()
and reuse a function,displayPayment()
, to be a parameter.Unassign 2 variables,
action
andomise_title
, that were passed from controller to view. PrestaShop 1.7 has its own submit payment mechanism which payment module need to follow. So, theaction
will be unused.The title has been changed to display at the payment option instead. So, the
omise_title
displayed at the top of payment form is unnecessary and duplicated.Align the size of elements in card payment form to fit with its parent.
Remove submit payment button. PrestaShop 1.7 has generated its own submit payment button. So, the submit payment button of module is unused.
3. Quality assurance
Environments:
Details:
The screenshot below shows the card payment form on PrestaShop 1.7.
The screenshot below shows the message when the customer checkout the order with unsupported currency such as USD.
4. Impact of the change
-
5. Priority of change
Normal
6. Additional notes
-