#obetomuniz-metadata

1 messages ยท Page 1 of 1 (latest)

devout geode
#

Hi there! Are you saying you saw this returned in the past and it is not currently?

keen sandal
#

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.

devout geode
#

Can you provide an example payment_intent.succeeded event ID I can look at?

keen sandal
#

Yup.

#

pi_3Kao6ODS88gPMVF91HehVLal

devout geode
#

Thanks, taking a look

keen sandal
#

The event ID itself is evt_3Kao6ODS88gPMVF91x5OuyZH

#

BTW, both on Test Mode, okay? ๐Ÿ˜„

devout geode
#

Yep that's fine.

keen sandal
#

nice ๐Ÿ˜„

#

Thanks!!!

devout geode
#

Do you have an example handy from the past where you were seeing metadata?

keen sandal
#

One sec. Let me check here.

devout geode
#

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

keen sandal
#

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

thick bolt
#

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.

keen sandal
#

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!