#sanket8360
1 messages · Page 1 of 1 (latest)
Hello
You can set the cancel_at parameter to the timestamp 6 months in the future. Or use a Schedule: https://stripe.com/docs/billing/subscriptions/subscription-schedules
Ok so when I add the cancel_at parameter my plan will be canceled after 6 months?
Well it'll cancel on the timestamp you specify. If that timestamp is after 6 months/periods then yes
Here I have set the cancellation but when I get the subscription I don't get the cancel_time.
sub_1NT0KwID8KX4Fnems3VyaH27
Subscription id
I don't think you passed the cancel_at parameter on creation: https://dashboard.stripe.com/test/logs/req_XS8gm10QvznvPG
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ok let me share one more subscription id
sub_1NT0fgID8KX4FnemVax7YykM
I am also not getting metadata .
No cancel_at or metadata parameter was passed: https://dashboard.stripe.com/test/logs/req_SlvpZ9NCZnUSuT
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So I don't think your createSubscription function is working as you expect
What am I checking?
This subscription id
What about it specifically?
cancel_at
And how to get next payment cycle date ?
You'd look at current_period_end
Oh Yes i get it.