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.
3. Quality assurance
Specify where and how you tested this and what further testing it might need.
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.
3. Quality assurance
Specify where and how you tested this and what further testing it might need.
🔧 Environments: