omise / omise-opencart

Omise OpenCart Plugin
https://docs.opn.ooo/opencart-plugin
MIT License
10 stars 11 forks source link

Add Internet Banking config at the payment setting page #39

Closed iwat closed 7 years ago

iwat commented 7 years ago

1. Objective

To enable & display an Internet Banking payment method (offsite), this PR provides an additional payment extension "Omise Payment Gateway - Internet Banking" to the OpenCart 2.0 branch.

2. Description of change

This PR adds new payment extension to OpenCart.

It also adds minor change on src/admin/view/template/payment/omise.tpl to fix misguided comment.

Since OpenCart only supports 1 payment method per 1 payment extension, this PR have to add a new payment extension instead of modifying the existing one. But to minimize changes and complexities, the extension reuses (not duplicates) existing omise extension and adds only required feature that is mandatory to offsite.

3. Quality assurance

🔧 Environments:

✏️ Details:

In OpenCart administration page, select "Extension (Jigsaw icon)" > "Payments" and scroll down. There should be 2 Omise extensions.

Each extensions can be installed independently but "Omise Payment Gateway - Internet Banking" cannot be enabled if "Omise Payment Gateway" is neither installed nor enabled.

4. Impact of the change

New extension "Omise Payment Gateway - Internet Banking" will be displayed on "Extension (Jigsaw icon)" > "Payments" page.

admin-extension-payment

There will be simple setting for this extension.

add-extension-payment-settings

5. Priority of change

Normal.

6. Additional notes

No.