#afonsolfm
1 messages · Page 1 of 1 (latest)
the line items of what? Checkout Session or Invoice ?
exactly
in my app, the user can either topup once
or pay a subscription
i thought i could get the payment intent on the webhook
to then check what he bought and topup
that would work for either checkouts or recurring payments
is it possible?
oh nevermind, just got it working
with invoice { enabled true } in the checkout
i can always listen for "invoice.paid"
and that works for me
You can get the related Checkout Session from the PaymentIntent via this API call:
https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent