omise / omise-woocommerce

Omise WooCommerce Plugin
https://docs.opn.ooo/woocommerce-plugin
MIT License
47 stars 27 forks source link

Remove QR from email when charge is no longer pending #219

Closed som-m closed 3 years ago

som-m commented 3 years ago

1. Objective

Remove PayNow QR from email when charge is no longer pending.

Related information: Related issue(s): internal ticket CS-675

2. Description of change

Chanapa 2021-06-27 at 04 43 10 PM

WooCommerce sends two emails to customer. One is sent when an order is placed with PayNow (Order on-hold email). Another one is sent when the order is paid (Processing order email). This PR removes QR from the second email.

Screenshots before the fix:

First email: image

Second email: image

3. Quality assurance

🔧 Environments:

✏️ Details:

  1. Enable PayNow on WordPress Admin.
  2. Set up webhook on Omise dashboard.
  3. Go to storefront, order and checkout with PayNow.
  4. Check the first email, it should contain QR.
  5. Mark the PayNow charge as paid.
  6. Check the second email, it should not contain QR.

4. Impact of the change

QR is removed from the second email.

First email:

image

Second email:

image

5. Priority of change

Normal

6. Additional Notes

n/a