Download the PHP package sowrensen/laravel-shurjopay without Composer
On this page you can find all versions of the php package sowrensen/laravel-shurjopay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sowrensen/laravel-shurjopay
More information about sowrensen/laravel-shurjopay
Files in sowrensen/laravel-shurjopay
Package laravel-shurjopay
Short Description A package for handling ShurjoPay payment gateway in Laravel applications
License MIT
Homepage https://github.com/sowrensen/laravel-shurjopay
Informations about the package laravel-shurjopay
Laravel-ShurjoPay 💳
A package for handling ShurjoPay payment gateway in Laravel applications
Laravel-ShurjoPay is a package for handling ShurjoPay payment gateway easily in Laravel applications. It has some advantages over the package provided by ShurjoPay and is much more configurable and well-structured.
Key differences with the official package
- Auto discovery for Laravel 5.5+ projects. 🔍
- ShurjoPay configurations can be defined on the fly. 🛸
- Uses Guzzle instead of cURL by default.
Changelog
For detailed changelog please see this file.
Requirements
- PHP >= 7.2
- Laravel >= 6.0
Installation
To install the package run
Publish
To publish the config file, run the following command
Environment Variables (Optional)
ShurjoPay would provide you some credentials, define them in your .env file:
Now if you like to keep your secret credentials somewhere else, there's nothing to worry about. You can load them on the fly. 😁 Check the following section.
Usage
The usage of the package is simple. First import the Sowren\ShurjoPay\ShurjoPayService class.
If you have defined your credentials in .env file, then just create an object,
If you want to load your ShurjoPay configuration in runtime, pass them to the constructor,
...and call the generateTxnId and makePayment method.
That's it! After successful or failed attempt it will redirect to the route you provided along with ShurjoPay response parameters.
All versions of laravel-shurjopay with dependencies
laravel/framework Version >=6.0
ext-curl Version *
ext-simplexml Version *
guzzlehttp/guzzle Version >=6.5.5