omise / omise-woocommerce

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

Fix installment payment when admin manually pay for order #388

Closed aashishgurung closed 1 year ago

aashishgurung commented 1 year ago

1. Objective

Fix installment payment when admin manually pay for order.

2. Description of change

Installment payment was not functioning properly when admin manually pay for order because the total amount was 0. This happened because logic was getting the total from the cart. But, cart is not present when admin pay for an order. So, we added a check that will get the total amount from order if the payment page is triggered by admin. If not then we get the total from cart.

Screenshot 2566-08-04 at 09 43 19



3. Quality assurance

Specify where and how you tested this and what further testing it might need.

🔧 Environments: