Files
openfoodnetwork/app/models/spree
Gaetan Craig-Riou c71ae35685 Fix payment_total calculation
For payment that complete during the checkout (Paypal, Stripe) the
amount was recorded twice against `order.payment_total`. This is because
the `payment_total` gets updated in an afer_save Payment callback when a
payment is completed, and then once more when we process payment in
`Spree::Order#process_each_payment`.
This is an existing  issue on master, but it was hidden by the
`update_shipping_fees!` callback, it trigerred an update of the order's
total, which then updated `order.payment_total` with the correct value.
Now that we removed the callback, the bug showed up.

Note, I updated the stripe specs for consistency even though they are
currently disabled.
2025-01-20 16:07:32 +11:00
..
2024-05-13 12:55:55 +01:00
2024-11-15 11:09:56 +01:00
2025-01-10 09:14:34 +11:00
2024-06-11 15:17:32 +10:00
2023-09-13 16:45:00 +09:00
2023-09-13 16:45:00 +09:00
2024-10-14 14:56:47 +11:00
2025-01-20 16:07:32 +11:00
2024-06-11 15:17:32 +10:00
2024-11-01 16:46:35 +11:00
2021-12-10 18:18:20 +00:00
2023-09-13 16:45:00 +09:00
2024-08-22 17:41:00 +02:00
2023-08-20 12:33:43 +09:00