#Hien Tran

1 messages · Page 1 of 1 (latest)

elfin idolBOT
sick quiver
elder plover
#

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.

sick quiver
#

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.
elder plover
#

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.

sick quiver
#

do you only have one product for a Subscription, or there's a possibility that there's multiple products?

elder plover
#

I have multiple products

sick quiver
#

unfortunately, there's really no other way about this at the moment

#

If you don't want to use the workaround to edit the first invoice, I think perhaps the best way is to just leave the first invoice as it is, and then modify subsequent invoices.