#bogdan_marian

1 messages · Page 1 of 1 (latest)

simple yachtBOT
full nexus
#

You can't really. We discourage calling the api in automated test suites

#

You should use mocks or stripe-mock for that

fast birch
#

You do not have an emulator?

#

Or something? If I mock evrything How woudl I know that it actualy works when we move to production?

full nexus
#

No

#

That's why you manually run through the payment flow

#

Automation can't mimic a live payment scenario perfectly

fast birch
#

That is bad design by default. You should have an emulator that developers can interact with and triger events and webhooks calls at will.

full nexus
#

triger events and webhooks calls at will.

#

that we do have

#

it's the stripe cli

#

the trigger command

fast birch
#

And I can not triger them from the sdk? I'm foced to use the browser to have the events commthroo. how do I sumbit a payment for example using the sdk. and then wait on the webook comming in ?

#

you have to use the browser.

#

Simpli put what you are sudjesting here is not reasanable. Is just like asking to a develoepr to write an application that connects to a specific database but he needs to mock all the calls to the database. This is just pure insanity.

#

The hole point of working with the database is just that. To abstract thows consirns away.
You spin up your local database. (stripe emulator) and go ahead happy conding.
cli does not do that. I can not triger by code the events that I want.

#

A success payment whould relfect change in balance.
An payment to an connected account should reflect that in balance.
Thise things would be testable by the java sdk.