mirror of
https://github.com/marcusDenslow/terminalShop.git
synced 2026-10-25 18:08:45 +01:00
Adds a background goruotine that runs every 5 minutes to find pending orders with no Stripe ID older than 10 mins and patches them if stripe shows a succeeded PaymentIntent. Covers the edge case where the server crashes after charging but before the DB transaction commits. Also tags PaymentIntents with order_id metadata at createion to make them searchable
2.7 KiB
2.7 KiB