The service provider has been refactored in order for the paystack api client \GuzzleHttp\Client to be mockable. In order words, the client has been moved to the \Unicodeveloper\Paystack\PaystackServiceProvider from whence the $secretToken and $baseUrl have been embedded within.
Service Provider Test
A test for \Unicodeveloper\Paystack\PaystackServiceProvider has also been added.
Client Mocking
The service provider has been refactored in order for the paystack api client
\GuzzleHttp\Client
to be mockable. In order words, the client has been moved to the\Unicodeveloper\Paystack\PaystackServiceProvider
from whence the$secretToken
and$baseUrl
have been embedded within.Service Provider Test
A test for
\Unicodeveloper\Paystack\PaystackServiceProvider
has also been added.