omise / omise-prestashop

Omise PrestaShop Plugin
https://docs.opn.ooo/prestashop-plugin
MIT License
4 stars 7 forks source link

Save the Omise charge ID to PrestaShop order payment transaction ID for reference #26

Closed nimid closed 7 years ago

nimid commented 7 years ago

1. Objective

Make the PrestaShop order has a reference to the Omise charge.

Related information:

2. Description of change

Save an Omise charge ID to PrestaShop order payment transaction ID. The changing in this pull request has been applied to all current supported 3 payment methods:

  1. Normal charge (non 3-D Secure)
  2. 3-D Secure
  3. Internet Banking

Note: The response from Omise API already contained the Omise charge ID. So, to save an Omise charge ID to PrestaShop order payment transaction ID, it is not need to add more Omise charge retrieval.

3. Quality assurance

Environments:

Details:

At the front-end

At the back-end

The screenshot below shows the success order detail at the back-end, it shows an Omise charge ID has been saved and displayed at the order payment transaction ID for the reference.

screenshot-localhost 16114-2017-06-21-06-57-27

The screenshot below shows the fail order detail at the back-end, it shows an Omise charge ID has been saved and displayed at the order payment transaction ID for the reference.

screenshot-localhost 16114-2017-06-21-14-18-30

4. Impact of the change

This change impact to the charge process for all current supported 3 payment methods.

  1. Normal charge (non 3-D Secure)
  2. 3-D Secure
  3. Internet Banking

5. Priority of change

Normal

6. Additional notes

Before change: At the back-end, order payment detail, the data at the transaction ID is empty. This cause the merchant can not know or refer which PrestaShop order that associate with Omise charge.

After change: Now, the merchant can refer between PrestaShop order and Omise charge.