#amitmirgal
1 messages ยท Page 1 of 1 (latest)
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
ok let me try with setting pause_collection empty..
๐
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...
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)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.