#smartkiparis

1 messages · Page 1 of 1 (latest)

low epochBOT
thorn solar
#

Yeah mocking the stripe api calls is the way to go. We generally recommend against calling the stripe api (even in test mode) for automated testing flows

compact nova
#

Do you have any useful docs to read regarding proper way to mock stripe api calls?

thorn solar
#

Above might be better for your usecase

compact nova
#

Official docs say that you should generate Stripe Responses manually. But how?
I guess this example is about using test keys to generate objects

thorn solar
#

Well to generate a stripe response manually you'd just mock the call to the stripe api and generate a response in the same shape that stripe would spit out

#

But that stripe-mock repo might be a good fit. Recommend looking into it

compact nova
#

ok, will try

#

thanks