#Sapna Verma
1 messages · Page 1 of 1 (latest)
Hi there!
hi Soma
You can use this endpoint directly: https://stripe.com/docs/api/subscriptions/cancel
In your original question you asked how to cancel a subscription immediately. The link I shared above does exactly this.
cancel_at_period_end is used when you want to cancel the subscription at the end of the current billing period. But you said you want to cancel the subscription immediately, so it's different.
without proration?
Yes by default cancelling a subscription doesn't create prorations, unless you setprorate:true
I recommend testing this in test mode to make sure it works as you expect.
ok thanks
which api to reactivate a subscription
is it resume a subscription?
If a customer’s subscription is canceled by updating cancel_at_period_end to true, and the subscription hasn’t yet reached the end of the billing period, it can be reactivated
Once a subscription is cancelled, you cannot reactivate it. You would need to create a new subscription.
If a customer’s subscription is canceled by updating cancel_at_period_end to true, and the subscription hasn’t yet reached the end of the billing period, it can be reactivated
In this case yes it can be reactivated
Just update the subscription and set cancel_at_period_end: false
what is resuming a subscription then?
It's used when you pause a subscription: https://stripe.com/docs/billing/subscriptions/pause
ok
yes i have that case too...to unpause should i just update a subscription with Pause_collection.resumes_at = “New timestamp”
or i should call resume a subscription
I think both options work.
ok..
could u please explain this from resume a sunscription - Setting the value to unchanged advances the subscription’s billing cycle anchor to the period that surrounds the current time.
Where is this sentence from?
If you set billing_cycle_anchor: unchanged, then the billing cycle anchor won't change.
Assuming it's a monthly subscription, it means that it's billing cycle anchor will be within the last 30 days, and then will trigger the next cycle within the next 30 days.
so u mean the original billing_cycle_anchor will sustain in this case
?
set on the API call create a subscription?
Yes
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
hi, can u please tell me where do i find the details of this parameter - https://stripe.com/docs/api/subscriptions/update#update_subscription-pause_collection
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the values are not explained
mark_incollectable is not explained in https://stripe.com/docs/billing/subscriptions/pause
mark_incollectable is not explained in this
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Mark invoices uncollectible: for businesses offering services for free.
can discounts be applied in the middle of subscription?
can i call update subscription with coupon ID and accomplish this
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i want to handle taxes through my inhouse invoicing system and not stripe invoices...is default_tax_rate sufficient in create subscription api
yes
also, shall i write the code to call create subscription API n the handling of "pay now" button in the payment element form?
?
@left saffron you have to wait like all the other discord users to get your response. I will get to your question when I have the time to, if you fail to be patient then you can leverage https://support.stripe.com/?contact=true and have async responses to your questions. Please, this is the final warning.
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
oops sorry..i am waiting
I thought we ended up saying that you will create the subscription first then pay
what changed?
the subscription will be created when the cutomer enters the payment details...isn't it? wont this happen on pay now button?
please suggest, otherwise where shall i call the create subscription API
there is only one button in my braintree integration, i thought the same on Stripe.
Also, this link says that ACH is deprecated, do you have this info, please confirm https://stripe.com/docs/ach-deprecated
the subscription will be created when the cutomer enters the payment details...isn't it? wont this happen on pay now button?
are you using Checkout?
@left saffron you should have created the subscription before
and what is called on Pay now button?
u mean confirmpayment or confirm setup js
Also, this link above says that ACH is deprecated, do you have this info, please confirm
hi vanya
see this link...we cant use ash on stripe anymore?
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
ACH is not deprecated. This is a legacy guide.
This is the new integration path: https://stripe.com/docs/payments/ach-debit
Was this helpful?
yes
Please, let me know if you have any other questions.
on this Q - the subscription will be created when the cutomer enters the payment details...isn't it? wont this happen on pay now button?
the customer enters the billing details and I am calling Create customer api
"on pay now button" what exactly do you mean this?
in the payment element form the button upon entering the detials
i am writing create subscription and confirming PI or SI on Pay NOw button
is that good?
or shall i use a button to create subscription and another to confirm payment
There's definitely should be only 1 button.
I am not familiar with your integration so it's hard for me to judge.
Are you using Payment Element?
How are you creating the Subscription on the backend? And what's your desired outcome?
Are you with me?