#Jayy
1 messages · Page 1 of 1 (latest)
Which webhook events are you subscribing to?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and would that pass it to the consequent events!?
Yes, as stated
Oh awesome. Sorry just 1 more question. what about the payment_method.attached. how would i pass metadata to it?
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
That's alright! the setupintent should be sufficient i guess 😸 Thanks ynnoj, have a good one!
you too!