#Jayy

1 messages · Page 1 of 1 (latest)

sage groveBOT
sour pond
#

Which webhook events are you subscribing to?

tawdry mantle
#

setup_intent.succeeded

#

and payment_method.attached

sour pond
#

You're passing metadata to the root Checkout Session object. You need to use setup_intent_data[metadata] instead to set it on the underlying Setup Intent (and related events): https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-setup_intent_data-metadata

tawdry mantle
#

and would that pass it to the consequent events!?

sour pond
#

Yes, as stated

tawdry mantle
#

Oh awesome. Sorry just 1 more question. what about the payment_method.attached. how would i pass metadata to it?

sour pond
#

That's not possible with Checkout AFAIK

#

I guess that event fires as a part of the setup, and there's no parameter to set metadata on the generated Payment Method object

tawdry mantle
#

That's alright! the setupintent should be sufficient i guess 😸 Thanks ynnoj, have a good one!

sour pond
#

you too!