#ashutosh_07427_72621

1 messages · Page 1 of 1 (latest)

sturdy islandBOT
little heart
#

Stripe CLI is really the easiest way. Otherwise you would want to actually create a Checkout Session

#

and confirm it

cinder eagle
#

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.

sturdy islandBOT
normal marten
#

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.

cinder eagle
#

Yes

#

So can we hit event triggers without CLI?
And use them from Stripe API instead.

normal marten
#

No, not in the way you're describing.

cinder eagle
#

Could you please share some Stripe reference docs links for the suggestion you provided above? So I can refer to that.

normal marten
cinder eagle
#

If possible 🙂