#ashutosh_07427_72621
1 messages · Page 1 of 1 (latest)
Stripe CLI is really the easiest way. Otherwise you would want to actually create a Checkout Session
and confirm it
Thanks for replying.
I already created a checkout session and retrieved it in my automated tests.
There is another requirement to test trigger checkout event with provided metadata and check the result in my project APIs. I also did this and the tests are working fine on my system as I already installed Stripe CLI. But now we have to run these tests on Jenkins. And, I'm not sure If I got access to install it there. So I'm looking for an alternate way to trigger the events, without installing the CLI on Jenkins.
Hello! I'm taking over and catching up...
Checkout isn't designed to be used in automated tests. You should mock responses from Stripe for your tests instead of actually hitting Stripe.
Yes
So can we hit event triggers without CLI?
And use them from Stripe API instead.
No, not in the way you're describing.
Could you please share some Stripe reference docs links for the suggestion you provided above? So I can refer to that.
If possible 🙂