#JaviBarredo

1 messages · Page 1 of 1 (latest)

odd cypressBOT
bright stratus
#

Hi there!

fallen dome
#

hey

bright stratus
#

Any metadata you add with stripe.subscription.create will be added to the Subscription object. Once you receive the payment_intent.payment_failed event, you can make a call to retrieve the PaymentIntent and expand invoice.subscription

fallen dome
#

what call ?

#

I am trying stripe.events.retrieve

#

but it's not giving me the metadata

bright stratus
#

After you receive the payment_intent.payment_failed event, you'd have to make a call to retrieve the PaymentIntent. The payment_intent.payment_failed event should include the ID of the PaymentIntent that failed. The metadata you added only exists on the Subscription object, which is why you'd need to expand invoice.subscription when retrieving the PaymentIntent

fallen dome
#

thanks, do you know the JS SKD call for any chance ?

bright stratus
#

Sorry! was just juggling a few threads

#

You mean Node SDK?

fallen dome
#

yeah sorry

bright stratus
fallen dome
#

🫡

odd cypressBOT
fallen dome
#

if you guys have any recomendation lmk

#

thanks for the help !

#

ok so

#

looking at that doc seems like i need a checkout session ID

#

that I can't find at the payment_intent.payment_failed webhook

fluid vessel
#

Hi, stepping in and catching up here.

fallen dome
#

👍

#

let me know if you need any extra information

fluid vessel
#

Can you add a bit more clarify on the follow up questions please?

fallen dome
#

and in my case I can only attend to the data given by the payment_intent.payment_failed webhook that seems like it's not returning such id

fluid vessel
#

What does 'I can only attend to the data given' mean?