A Laravel Package that makes implementation of multiple payment Gateways such as Paystack, Flutterwave and Stripe endpoints and webhooks seamless.
Full Changelog: https://github.com/MusahMusah/laravel-multipayment-gateways/compare/1.7.1...1.7.2
Full Changelog: https://github.com/MusahMusah/laravel-multipayment-gateways/compare/1.7.0...1.7.1
redirectToCheckout
when carrying out transaction method by @MusahMusahHttpClientWrapper
with any of the Payment Gateways. flutterwave->anymethod();
Added a HttpClientWrapper
to enable making http get, post, put, patch and delete
request using dependencies of the desired payment gateways in making such request.
All requests made through the HttpClientWrapper
will have access to desired gateway base url
, secret key
among other dependencies. This change would allow extending the package beyond methods available in a specific gateway class, simply by calling any endpoint from your desired payment gateway api docs with parameters required to make the request should do.
In addition, the HttpClientWrapper
is available via helpers
, dependency injection
and the facade
of all payment gateways supported.
// Example of making http get request
paystack()->httpClient()->get('bank');
// Example of making http post request
$fields = [
"email" => "[email protected]",
"first_name" => "Zero",
"last_name" => "Sum",
"phone" => "+2348123456789"
];
$response = paystack()->httpClient()->post('customer', $fields);
dd($response);
// all payment gateways provided by the package can use the httpClient
$response = Flutterwave::httpClient()->get('/banks/056');
dd($response);
$response = stripe()->httpClient()->get('v1/customers/cus_4QFOF3xrvBT2nU');
dd($response);