#shaon-testclocks-connect

1 messages · Page 1 of 1 (latest)

solid anvil
#

Hello! Yes, there shouldn't be anything blocking you from using test clocks with connect

cyan bay
#

is there a way to avoid using test clocks?

#

firing a webhook event with a custom body?

solid anvil
#

What specifically are you trying to test? Some flows are easily testable w/o test clocks, but some flows are much easier with clocks

cyan bay
#

basically i am trying to simulare invoice.created but with billing reason = subscription_cycle

solid anvil
#

Gotcha - so you should be able to test that by creating a Subscription with a very short trial length (just a couple of seconds)

cyan bay
#

ah, this doesn't seem possible

#

i get an error stating that trial length needs to be greater than 2 days

solid anvil
#

Are you using checkout? or something else to create the subscription?

cyan bay
#

checkout

solid anvil
#

Yeah then this won't work - you would have to create the subscription directly through the API (not with checkout)

cyan bay
#

ah ok

#

is there a reason checkout does not support this?

solid anvil
#

I think it was a product decision - it doesn't really make sense to have a trial period that could end before the Checkout session is completed, and could result in a lot of confused users

cyan bay
#

ah ok