#nhuzaifa_70357

1 messages · Page 1 of 1 (latest)

plain wadiBOT
austere zephyr
#

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.

coral smelt
#

Alright, I am trying to run a test clock on a subscription how do i acheive this with checkout

austere zephyr
#

Test Clocks aren't compatible with Checkout as far as I know.

#

What specifically are you trying to do?

coral smelt
#

I am trying to build a module which handles subscription cancellation

#

Can we create a subscription and attach it with a checkout
?

austere zephyr
#

Not sure what you mean by "attach it"? Can you clarify?

coral smelt
#

I mean like passing subscription Id to a checkout. IDK if that would work but can i t?

austere zephyr
#

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?

coral smelt
#

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

austere zephyr
#

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.

coral smelt
#

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 😅

austere zephyr