#nhuzaifa_70357
1 messages · Page 1 of 1 (latest)
Hello! A Checkout Session will create a Stripe-hosted payment page where your customer can pay, and if they pay successfully a Subscription will be generated based on the parameters you set. You also have the option to create a Subscription yourself, directly with the API, without Checkout being involved.
Alright, I am trying to run a test clock on a subscription how do i acheive this with checkout
Test Clocks aren't compatible with Checkout as far as I know.
What specifically are you trying to do?
I am trying to build a module which handles subscription cancellation
Can we create a subscription and attach it with a checkout
?
Not sure what you mean by "attach it"? Can you clarify?
I mean like passing subscription Id to a checkout. IDK if that would work but can i t?
No, you can't do anything like that.
Checkout only creates Subscriptions, it doesn't handle existing ones.
I'm still not clear on what you're trying to test exactly, can you provide more detail?
So if we cancel a subscription. An event will be called for the cancellation after like a month. If the subscription is set to monthly right. So I wish to basically advance time so then I won't have to wait for a month to get that event
but the subscription is being created using checkout. and like you said checkout doesn't support test clocks
You can create a Subscription using the API to test that.
You don't need to have the Subscription created by Checkout.
A Subscription will behave the same at that point regardless of how it was created.
yes but how will I pay for that subscription without the checkout ?
Will it start the subscription without the payments ?
I am fairly new to using stripe. Quite a beginner you can say. I apologize if my questions don't really make sense 😅
You can use our test Payment Method objects: https://stripe.com/docs/testing?testing-method=payment-methods#cards