#Soyra

1 messages ยท Page 1 of 1 (latest)

steep tulipBOT
tropic jay
#

Hi there!

#

As you can see it creates a Checkout Session in payment mode and not subscription mode, so it's expected that there is no subscription ID.

pulsar hare
#

Yes, that's the problem ๐Ÿ˜ฆ

tropic jay
#

So you have a few options:

  • Use the --override parameter to change the product and mode used by the Stripe CLI https://stripe.com/docs/cli/trigger#trigger-override
  • Create your own fixture that describes how to create a Checkout Session in subscription mode.
  • Or more easily just create a Checkout Session with a subscription in test mode.
pulsar hare
#

I thought about create manually a Checkout Session, but it will call the real endpoint, and not the test one isn't it ?

tropic jay
#

If you use your test API keys (sk_test_xxx), then it will create test objects.

pulsar hare
#

Oh yes ok. Well, thanks for your reactivity and your help ๐Ÿ˜„ I'm going to test that

tropic jay
#

Happy to help ๐Ÿ™‚