Package for Laravel which wraps the MultiSafepay PHP-SDK
multisafepay/laravel-api is a Laravel package for package for laravel which wraps the multisafepay php-sdk.
It currently has 5 GitHub stars and 64.683 downloads on Packagist (latest version 1.2.0).
Install it with composer require multisafepay/laravel-api.
Discover more Laravel packages by multisafepay
or browse all Laravel packages to compare alternatives.
Last updated
This is a package for Laravel which wraps the MultiSafepay/php-sdk for easy integration with MultiSafepay. The package:
MultiSafepay is a collecting payment service provider, which means we take care of electronic contracts, technical details, and payment collection for each payment method. You can start selling online today and manage all your transactions in one place.
Run composer require multisafepay/laravel-api http-interop/http-factory-guzzle.
Register the following provider in the bootstrap/app.php. file:
$app->register(\MultiSafepay\Laravel\MultiSafepayServiceProvider::class);
To enable facades, register them in the bootstrap/app.php.
$app->withFacades(true, [
"MultiSafepay\\Laravel\\Facades\\MultiSafepay" => "MultiSafepay",
"MultiSafepay\\Laravel\\Facades\\MultiSafepayOrders" => "MultiSafepayOrders",
"MultiSafepay\\Laravel\\Facades\\MultiSafepayGateways" => "MultiSafepayGateways",
"MultiSafepay\\Laravel\\Facades\\MultiSafepayIssuers" => "MultiSafepayIssuers",
]);
In your .env file, set the following environment variables:
MULTISAFEPAY_APIKEYSet this to your site API key:
MULTISAFEPAY_ENVIRONMENTSet this to live or test depending on whether you want to process transactions on our LIVE or TEST platform.
You can use the transaction API in 3 ways:
//Using helper function
$transaction = multisafepayTransactionManager('apikey', 'environment')->get('id');
//Using service container
$transactionManager = $app->makeWith(TransactionManager::class, ['apikey' => 'xxxx', 'environment' => 'live']);
$transaction = $transactionManager->get('id');
//Using facade accessor
$transaction = MultiSafepayTransactionManager::get('id');
Create an issue on this repository or email [email protected]
To contribute, create a pull request on this repository. We'll send you some MultiSafepay swag as a thank you!
Open Software License (OSL 3.0)
Are you a developer interested in working at MultiSafepay? Check out our job openings and feel free to get in touch!