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