#S60-Cosminacho - Session Metadata
1 messages · Page 1 of 1 (latest)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the value has to be between {}?
Depends on your programming language. PHP uses []
How are you creating Sessions?
well...with curl? I am using integromat
essentially we are making API calls
it looks like this
Okay, thats interesting. You would need to pass metadata as a series of key: value pairs. For cURL it looks something like this:
https://stripe.com/docs/api/metadata?lang=curl
got it!
let me try Ld
@oblique thunder , can I bother you with one more question
?
Sure, what's up?
is it possible that the metadata from the session to be sent to a subscription?
I have an hook that essentially activates as soon as the a new subscription is created (aka paid)
Yes you can do that. You just need to pass it in the subscription_data.metadata parameter here:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-metadata
Okk.