#bennie-metadata

1 messages · Page 1 of 1 (latest)

tawny kite
#

@mystic stirrup which object are you putting the metadata on? i.e. the subscription?

mystic stirrup
#

My scenario is subscription

tawny kite
#

you're adding the metadata to the checkout session, so you would get the metadata from the checkout session

mystic stirrup
#

But I can’t get it after checkout

tawny kite
#

can you share the checkout session id?

mystic stirrup
#

Wait a mininute

#

stripe paymentIntentId: pi_3JZrJmD56xuafeEI0tCbU2Sx

tawny kite
#

so the object that you're adding the metadata to, is the Checkout Session object

#

you need to look for the metadata on the Checkout Session events e.g. evt_1JZsOlD56xuafeEIfVAMWYco

mystic stirrup
#

Metadata not return as callback

tawny kite
#

@mystic stirrup you're looking at the wrong event type

#

the screenshot you are showing is invoice.paid event

#

you need to look at checkout.session.completed as an example

mystic stirrup
#

please look, "2 response infos",payment_init is null

#

at first , we event is "checkout.session.completed"

tawny kite
#

I think you're actually asking two separate questions here?

  1. where is the metadata being populated?
  2. why is payment intent null?
mystic stirrup
#

at first, Please reply to "why is payment intent null?"

tawny kite
mystic stirrup
#

"Mode = SUBSCRIPTION" What should i do

#

There is no corresponding relationship, the program cannot match

tawny kite
#

if you do need it, i think what you can do is to listen for a different event e.g.
invoice.payment_succeeded

#

example : evt_1JZrJpD56xuafeEISGZLxyEZ

#

that contains the subscription id, and payment_intent id

#

does that make sense?