We need a $payment->getBalance() method that returns the amount - refunded_amount.

We also need a method that returns the unpaid amount of an order (order total - each payment's balance). Unsure where it should live.

Comments

bojanz created an issue. See original summary.

bojanz’s picture

Title: Add balance methods » Add $payment->getBalance()

Rescoping, we can do the first part right away, the second one will need a bit of discussion.

  • bojanz committed 35bdd23 on 8.x-2.x
    Issue #2790545 by bojanz: Add $payment->getBalance()
    
bojanz’s picture

Status: Active » Fixed

Done.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.