Problem/Motivation
If someone adds more than a single item to the cart, then the final item added to the cart is what actually gets charged to Square.
Variable name re-use is what is biting us. We have the same variable $square_amount reused throughout the payment gateway.
Proposed resolution
Fix the bug. Super quick. Let's separate out our variable names and name the $square_amount to $square_total_amount when we are dealing with the square total amount.
Remaining tasks
Review patch.
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2944857.patch | 2.32 KB | heddn |
Comments
Comment #2
heddnComment #3
heddnComment #4
heddnComment #6
mglamanGreat catch, thanks!