#Maru
1 messages ยท Page 1 of 1 (latest)
Hi ๐ looking into that
a Meeseek! Hi ๐๐ผ ...
You're right that you can't use the invoice_creation hash with subscription mode Checkout Sessions, that feature is intended to create Invoice for payment mode Checkout Sessions that typically wouldn't. That's not the case with Subscriptions since they generate their own Invoices already.
I'm not seeing a way to pass metadata for the first Invoice that gets created for the Subscription, the closest thing I'm seeing is that you can use subscription_data.metadata to put metadata on the Subscription object that gets created:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_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.
hmm, so there's no way to send metadata to the first invoice, at the invoice object? everything should be done through subscription object?
Correct, but I'll be sure to capture your feedback that this is something you'd like to be able to provide metadata for the first Invoice directly.
Any time! I've captured that feedback for our teams to review, thank you for taking the time to raise this!