#Sapna Verma

1 messages · Page 1 of 1 (latest)

dull hawkBOT
keen lodge
#

Hi there!

left saffron
#

hi Soma

keen lodge
left saffron
#

u mean - without updating cancel_at_period_end?

#

without proration?

keen lodge
#

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 set prorate:true

#

I recommend testing this in test mode to make sure it works as you expect.

left saffron
#

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

keen lodge
#

Once a subscription is cancelled, you cannot reactivate it. You would need to create a new subscription.

left saffron
keen lodge
#

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

left saffron
#

what is resuming a subscription then?

keen lodge
left saffron
#

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

keen lodge
#

I think both options work.

left saffron
#

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.

keen lodge
#

Where is this sentence from?

keen lodge
#

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.

left saffron
#

so u mean the original billing_cycle_anchor will sustain in this case

#

?

#

set on the API call create a subscription?

keen lodge
#

Yes

dull hawkBOT
dense ingot
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

left saffron
#

the values are not explained

dense ingot
left saffron
#

mark_incollectable is not explained in this

dense ingot
#

Mark invoices uncollectible: for businesses offering services for free.

left saffron
#

can discounts be applied in the middle of subscription?

#

can i call update subscription with coupon ID and accomplish this

dense ingot
left saffron
#

i want to handle taxes through my inhouse invoicing system and not stripe invoices...is default_tax_rate sufficient in create subscription api

dense ingot
#

yes

left saffron
#

also, shall i write the code to call create subscription API n the handling of "pay now" button in the payment element form?

#

?

dense ingot
#

@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.

left saffron
#

oops sorry..i am waiting

dense ingot
#

what changed?

left saffron
#

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.

dense ingot
#

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
#

PE

#

payment element

dense ingot
#

@left saffron you should have created the subscription before

left saffron
#

and what is called on Pay now button?

dense ingot
#

confirming the PI/SI

#

of the subscription

left saffron
#

u mean confirmpayment or confirm setup js

#

Also, this link above says that ACH is deprecated, do you have this info, please confirm

dull hawkBOT
left saffron
#

hi vanya

#

see this link...we cant use ash on stripe anymore?

ocean summit
#

Hi! I'm taking over my colleague. Please, give me a moment to catch up.

#

ACH is not deprecated. This is a legacy guide.

ocean summit
#

Was this helpful?

left saffron
#

yes

ocean summit
#

Please, let me know if you have any other questions.

left saffron
#

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

ocean summit
#

"on pay now button" what exactly do you mean this?

left saffron
#

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

ocean summit
#

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?

left saffron
#

yes

#

PE

ocean summit
#

How are you creating the Subscription on the backend? And what's your desired outcome?

#

Are you with me?

dull hawkBOT