#Akin

1 messages ยท Page 1 of 1 (latest)

broken gulchBOT
radiant marlin
#

Hi ๐Ÿ‘‹ no. That function generates a preview of the next Invoice, but does not actually generate that next Invoice so no ID is available for it. The ID of the Invoice object will not be available until the object is created.

glad goblet
#

Ah okay, would you suggest using payment intent in this case? I am looking to apply discount to the invoice before creating the actual subscription

radiant marlin
#

No, Subscriptions automatically create Invoices which automatically create Payment Intents so you typically don't need to create your own intents when working with Subscriptions.

Are you planning to use a Coupon for to apply that discount?

glad goblet
#

Yes

radiant marlin
glad goblet
#

Okay will try that. Thanks!

radiant marlin
#

Any time!