Implement use of getTotalPaid() and getBalance() methods

Created on 10 December 2019, over 4 years ago
Updated 1 November 2023, 8 months ago

Problem/Motivation

Commerce implemented a concept into orders recording the total amount paid and the remaining amount which has to be paid, called balance. #2804227-6: Add getTotalPaid() and getBalance() methods to orders β†’ :

The order tracks its paid_total. getBalance() then subtracts the paid_total from the total.

This concept has not yet been implemented into commerce_stripe and is needed to solve issues like #2935337-4: Native support for deposits/later payment of balance β†’ .

Proposed resolution

Do the house keeping mentioned by mglaman in #2935337-7: Native support for deposits/later payment of balance β†’ by implementing the use of those methods, especially of getBalance() when creating and updating payment intents and payments, instead of getTotalPrice().

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria mvonfrie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024