mirror of
https://github.com/myronblair/tomsjavajive
synced 2026-06-30 17:50:32 -05:00
2550ec5695
When using Stripe Checkout, both checkout.session.completed and payment_intent.succeeded fire for the same payment. After the stripe.php change propagated order_id into PI metadata, the PI handler also found an order_id and sent a second confirmation email. Fix: fetch the order first in payment_intent.succeeded and skip if already confirmed. Also records stripe_payment_intent in this path for direct PI flows that bypass checkout.session.completed.