#fireball-checkout-test

1 messages · Page 1 of 1 (latest)

velvet pawnBOT
bold barn
#

fireball-checkout-test

#

What you can do is use the Stripe CLI which allows you to force complete a subscription via stripe trigger checkout.session.completed

#

but otherwise mostly we recommend "mocking our API" and simulating your own response/behaviour mirroring what our API/webhooks would do

placid girder
#

got it okay so would mocking the API be via modification to stripe-mock in that case?

#

I'll take a look at the CLI as well, thank you. May still have to do a bit more digging as we want these to be an automated test suite we can run before release

bold barn
#

I wouldn't use stripe-mock at all in this case, it really depends what you are after. I'd just mock the API myself to return the JSON I want

placid girder
#

I see okay, thanks for clarifying that. So just to make sure I have it all correctly, the only way to fully run the integration with Checkout Session would be by completing it via UI?
Otherwise our best bet is the CLI or mocking the API ourselves + webhook firing

#

there wouldnt be any other way to force the behavior via API (either checkout session API or subscription API, etc)

bold barn
#

correct

#

I mean you can always do things async for other products

#

but you can't "complete" a Checkout flow with code (other than the CLI trick)

placid girder
#

got it, thank you 🙂 appreciate all of the help