#rvk

1 messages ยท Page 1 of 1 (latest)

swift forumBOT
finite rapids
#

Hi ๐Ÿ‘‹ there are a couple ways to do this, but I think the easiest would be if you listened for checkout.session.completed Events instead. Those will contain the Checkout Session that was created from your Payment Link, which will have a payment_link field that points back to the Payment Link that created it:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_link

It will also have a reference to the related Payment Intent in case you need data from there as well:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent

uncut canopy
#

got it, thank you

finite rapids
#

Any time!

uncut canopy
#

On the checkout.session.completed event does the attributes "amount_subtotal" and "amount_total" represent the amount user paid?

swift forumBOT
finite rapids
#

That's correct

amount_subtotal: Total of all items before discounts or taxes are applied.
amount_total: Total of all items after discounts and taxes are applied.