After a payment was made with Stripe I want to know which promotion code was used.
After the redirect to my website, I can successfully retrieve information about that session with:
\Stripe\Checkout\Session::retrieve([SESSION_ID]);
And also information about the specific payment with:
\Stripe\paymentIntent::retrieve([PAYMENT_INTENT]);
But neither of those include information about which promotion code was used, just the amount that was paid.
Is it also possible to find out which promo code was used?