#amitmirgal

1 messages ยท Page 1 of 1 (latest)

pulsar flareBOT
vital dirge
#

Hello there

#

You only use that endpoint when a Subscription actually moves to status "paused" when you pause it after a trial when a Payment Method isn't collected.

What you want to use is setting pause_collection to an empty string on a Subscriptoion update like we show here: https://stripe.com/docs/billing/subscriptions/pause#unpausing

fresh marsh
#

ok let me try with setting pause_collection empty..

vital dirge
#

๐Ÿ‘

fresh marsh
#

it worked ...thanks @vital dirge ๐Ÿ™
qq not sure if I understand when to use the following endpoint

await stripe.subscriptions.resume(
  subscriptionId,
  { billing_cycle_anchor: 'now' }
);

could you please explain when should i use it...

vital dirge
#

Sure, you would only use that if you are using Stripe Checkout and setting payment_method_collection: 'if_required', and missing_payment_method: 'pause', (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_settings-end_behavior-missing_payment_method)