Speed up subscription lifecycle (force renew)

57 megtekintés
Ugrás az első olvasatlan üzenetre

Stathis fra Ramsalt

olvasatlan,
2018. ápr. 23. 8:57:482018. 04. 23.
– api-d...@lists.stripe.com
Hello,

Is there any way to "speed up" the subscription cycle in test mode, so that I trigger all the webhooks on demand?


Remi J.

olvasatlan,
2018. ápr. 23. 9:00:352018. 04. 23.
– api-d...@lists.stripe.com
Hello,

This is not something supported today unfortunately. For now, the best solution is to put a subscription on a trial period for a few minutes to simulate a renewal. You can use the Create Subscription API [1] with the `trial_end` parameter for this even though it's not documented right now. Set this parameter to a timestamp a few minutes in the future and then wait for the new `invoice.created` event to fire as it would for a normal renewal.

Best,
Remi


On Mon, Apr 23, 2018 at 2:30 PM, Stathis fra Ramsalt <sta...@ramsalt.com> wrote:
Hello,

Is there any way to "speed up" the subscription cycle in test mode, so that I trigger all the webhooks on demand?


--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss+unsubscribe@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

Stathis fra Ramsalt

olvasatlan,
2018. ápr. 24. 2:19:052018. 04. 24.
– api-d...@lists.stripe.com
Thank you for the advice :)


To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Válasz mindenkinek
Válasz a szerzőnek
Továbbítás
0 új üzenet