#choorhong-trial

1 messages · Page 1 of 1 (latest)

woeful berry
#

Hi there, let me check for you 🙂

woeful berry
#

(i) As trials are associated to Subscription, the Price defined for Subscription has to be a recurring price, this cannot be applied to one-time price.
An alternative way is:

  1. Create a Subscription with trial with a recurring Price.
  2. When trial ends, listen to the webhook event: invoice.payment_succeeded to confirm the payment had been successful.
  3. After your business logic in handling this successful payment, cancel the Subscription.
next delta
#

How about:

await stripe.subscriptions.create({ customer: ..., items: ..., add_invoice_items: ..., // setup fee trial_end: ... })

#

I understand I could add non-recurring items ( in the add_invoice_items argument) to create subscription

Will both the items & add_invoice_items be charged after the trial ends?

#

Or add_invoice_items (like setup fee) will be charged first before the trial period ends?

Just seeking clarification.

woeful berry
#

Thank you for your message, I was going to suggest this for your second ask (ii)

#

You can add an additional invoice_item on top of the Subscription item, where this invoice_item is the one-time payment.

#

When invoice_item is added for Subscription, this will first be charged when the Subscription is created.
The Subscription amount is charged when the trial ends.

next delta
#

Alright. Thanks for the clarification.
Just to double check, as you were saying trials are associated with Subscription. So, it will ONLY be applied to subscriptions.
Trials (at this moment) does not apply to one-time charge on Stripe, am I correct?

woeful berry
#

Yes correct