laravel-shop/tests/Unit/Stripe
Fabian @ Blax Software 637ad392ce fix(stripe): take checkout totals (shipping, discount, tax) from the session
Shipping rates, promotion codes and tax chosen on the Stripe Checkout page
only exist on the session. checkout.session.completed now copies
amount_subtotal, total_details.amount_shipping/amount_discount/amount_tax and
amount_total onto the (not yet paid) order before recording the payment, so
the order's totals match what was charged and the order is settled. The
chosen shipping rate id goes to meta.stripe_shipping_rate. The shipping
address is also read from collected_information.shipping_details (Stripe API
2025-03-31+), falling back from shipping_details.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 11:30:55 +02:00
..
StripeCheckoutTotalsTest.php fix(stripe): take checkout totals (shipping, discount, tax) from the session 2026-09-24 11:30:55 +02:00
StripeRefundTest.php fix(stripe): cents everywhere, idempotent refunds, admin refunds, webhook ledger sync 2026-09-24 10:50:25 +02:00
StripeWebhookAddressTest.php feat(i18n,stripe): de/pl translations + order address snapshots from Checkout Session 2026-09-21 13:39:40 +02:00
StripeWebhookOrderModelTest.php fix(orders): dispatch OrderPaid once; honour shop.models.order on webhook + service paths 2026-09-24 08:22:55 +02:00
StripeWebhookOrderTest.php fix(stripe): cents everywhere, idempotent refunds, admin refunds, webhook ledger sync 2026-09-24 10:50:25 +02:00