#haroon
1 messages · Page 1 of 1 (latest)
hello! you can pass it in cancel_at : https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But I don't want to cancel that subscription I want to renew it at that specific date
do you mean you want the subscription to renew on the 20th of may?
Yes
and it should renew to the period of price. Which is 30 days. So, next invoice will generate on 19th of June. Right after 30 days of renewl
@wooden solar ??
it'll generate on 20th of May actually. What you'll want to do is to set the billing cycle anchor date : https://stripe.com/docs/billing/subscriptions/billing-cycle
Yes, I had read it already by I'm unable to understand it
which bit specifically are you having trouble understanding?
the whole procedure of billing anchor
defining the billing cycle anchor is just to set the exact date that the subscription renews
it's going to be difficult for me to help unless you can be more specific about what you don't understand or need help with
I'd suggest that you just try it out and that might help you figure things out
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
According to my requirements which is the best thing I should use?