Laravel Cashier to override CurlClient with Laravel Http Client #45102
Unanswered
dawidholka
asked this question in
Ideas
Replies: 1 comment
-
Or we could have option to change the default client, as it could make the testing alot easier? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am just testing the integration with Stripe, when testing I do not want to use Stripe API directly, just create fake responses.
I used for this
I came up with the idea that Laravel Cashier could by default replace the Http Client used by Stripe with the built-in Http Client in Laravel.
Currently Stripe uses Stripe\HttpClient\CurlClient.php
This would show all requests in Laravel Telescope and make it easier to create fake responses.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions