#ferrancabrera
1 messages · Page 1 of 1 (latest)
hi, that metadata lives on the PaymentLink object.
if you want it to live on the PaymentIntent and be returned on events related to that, usually what I would say is pass metadata into payment_intent_data https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_intent_data , but seems like we don't support that just now
what I think you should do really is not be using payment_intent.succeeded. You're supposed to use checkout.session.completed for PaymentLinks, and the metadata will be there.
https://stripe.com/docs/payments/checkout/fulfill-orders
but is it the same? I mean, both things represent that the payment has been done?
yes
I just want to hook one of both events, it doesn't make sense for me to use both