Implement use of getTotalPaid() and getBalance() methods

Created on 10 December 2019, about 5 years ago
Updated 1 November 2023, about 1 year 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.71.5 2024