#snows02

1 messages · Page 1 of 1 (latest)

idle parcelBOT
raven fjord
#

Hi 👋 yes, you can include one time items on the first invoice for a Subscription
https://support.stripe.com/questions/how-to-add-one-time-items-to-invoices-and-subscriptions-in-the-dashboard

#

Did you try an approach and run into problems that I can help explain? Or is this more of a cursory search?

idle parcelBOT
random frost
#

Currently, I have a few problems trying to add a subscription and a product in a checkout session, especially when try to add metadata in the payment intent or invoice

woeful forge
#

Hi there. What are the problems? Can you be more specific?

random frost
#

For ex

#

and not make sense add to the suscription metada the metadata related with the product

woeful forge
#

invoice creation is a separate param

#

If you're in subscription mode, just don't pass that param as the error message says

#

Invoices are already created for you

random frost
#

But if I am using subscription mode in the checkout session, is there a way to add metadata to the payment intent?

woeful forge
#

Not automatically unfortunately

#

You'd need to manually make the update payment intent call to do that

#

Invoices now have the subscription_details[metadata] property, though which is a snapshot of the Subscription metadata at the time of Invoice finalization. So if you just need it on the Invoice, you can set metadata on the subscription through session creation

random frost
#

Got it, thanks, related to the link at the top of the thread there is only this way to add subscriptions and products at the same time

woeful forge
#

That article covers multiple ways