This PR uses the Laravel container to resolve StripeClient instead of initializing it in the Cashier class.
In complex test scenarios, this would allow us to mock the StripeClient instead of sending actual requests to Stripe and make those test cases focus only on actual business logic.
This PR uses the Laravel container to resolve
StripeClient
instead of initializing it in the Cashier class.In complex test scenarios, this would allow us to mock the StripeClient instead of sending actual requests to Stripe and make those test cases focus only on actual business logic.