#Hien Tran
1 messages · Page 1 of 1 (latest)
hello! you can :
1/ Listen to invoice.created
2/ Call the Update Invoice API and set the statement descriptor you want with the statement_descriptor parameter : https://stripe.com/docs/api/invoices/update#update_invoice-statement_descriptor
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
When we charge with the createSubscription API, the invoice will be created and finalized automatically at the same time.So we can't update this invoice.
ah, if you need to edit the first Invoice, there're two options
- Create your subscription with trial_end set a couple of seconds into the future. The subscription will first generate a $0 invoice, and once the trial is over a non-zero invoice will be created with a one hour draft period. The initial status of this subscription will be trialing and will transition to either active or past_due depending on the payment outcome.
- Create the subscription through a subscription schedule. When the schedule starts, the subscription’s initial status will be active with an initial draft invoice that is scheduled to finalize in an hour. Depending on whether payment of the initial invoice is successful or not, the subscription will either stay active or transition to past_due.
The two options above will change my business app. I want to charge users immediately and respond to the result (successful or error) to user when the user charges a subscription.
do you only have one product for a Subscription, or there's a possibility that there's multiple products?
I have multiple products