Using metadata with Checkout sessions
There are two parameters that allow you to pass on metadata to a Subscription or PaymentIntent created from a CheckoutSession. These parameters can only be used in a server-side API call to create a CheckoutSession (https://stripe.com/docs/api/checkout/sessions/create).
1. payment_intent_data.metadata
2. subscription_data.metadata
Additional Information
- payment_intent_data-metadata (Stripe API docs)
- subscription_data-metadata (Stripe API docs)
- How metadata works with related objects (Support Site)
- Metadata (Developer Foundations)
Did this answer your question?
Related articles