#marcowoldering

1 messages ยท Page 1 of 1 (latest)

cloud summitBOT
hollow needle
#

I'm afraid the metadata on Checkout Session doesn't get populated into Invoice. Which mode of Checkout Session is your integration on?

bleak mauve
#

subscription

#

can i get the checkout object through the invoice maybe?

hollow needle
#

Stripe objects don't pass metadata from one object to another. One alternative I can think of is to set metadata in subscription_data.metadata: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-metadata, so that the metadata will be available in Subscription object

#

When you receive the invoice.paid object, your system can make additional request to retrieve the Subscription object from subscription

bleak mauve
#

Ah yes, additional request isn't even necessary ๐Ÿ‘

hollow needle
#

Oh! That's great!