#obetomuniz-metadata
1 messages ยท Page 1 of 1 (latest)
Hi there! Are you saying you saw this returned in the past and it is not currently?
Exactly. It is happening when the user pays a Payment Link created using Payment Links API. On Stripe Dashboard the payment has the metadata expected, but after the user pay on Stripe Checkout UI, the event is triggered without metadata expected.
Can you provide an example payment_intent.succeeded event ID I can look at?
Thanks, taking a look
The event ID itself is evt_3Kao6ODS88gPMVF91x5OuyZH
BTW, both on Test Mode, okay? ๐
Yep that's fine.
Do you have an example handy from the past where you were seeing metadata?
One sec. Let me check here.
I believe this is expected that the metadata won't transfer down to the PaymentIntent itself from the payment link.
Looking to confirm that though
Yeah! It started after I migrate to Payment Link from Stripe Checkout. Looks like it is not returning since the migration, so never returned :/
Could you confirm? I mean, why can I submit metadata, but not retrieve it hehe
Metadata set on the Payment Link will be copied to the resulting Checkout Sessions, but it won't be on the Payment Intents those Checkout Sessions create. If your goal is to get an event that indicates Checkout succeeded that includes the metadata you should listen for checkout.session.completed instead.
From the Checkout Session you can get to the associated Payment Intent if you need the detail there.
Interesting. So I can get metadata from there? ๐
๐
If that's the case. That's definitely what I need. I will take a look. I am already using this event to disable the Payment Link. I will check it out. Thanks a lot, folks !!!
Noice! I just see that I can deal with checkout.session.completed, it is returning the metadata. Again, thanks a lot folks!