#Batsare-unittest

1 messages · Page 1 of 1 (latest)

compact bloom
#

That would be doing some mock instead of actually calling Stripe API. Calling Stripe API = create some Stripe test data

tame eagle
#

It seems complicated to me to simulate the checks of Stripe, data that I send

compact bloom
#

What language you are using? Technically you would need to wrap the call to Stripe API itself, and mock it before the call ever triggered in

tame eagle
#

I use PHP, I'll take an example: when I send a phone number, if it doesn't have a valid format, it returns an error.
If tomorrow there is an update of Stripe with new validations and I do it, the tests will allow me to verify that the connection remains good.