Download the PHP package raziul/shurjopay-laravel without Composer
On this page you can find all versions of the php package raziul/shurjopay-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download raziul/shurjopay-laravel
More information about raziul/shurjopay-laravel
Files in raziul/shurjopay-laravel
Package shurjopay-laravel
Short Description ShurjoPay payment gateway integration for Laravel.
License MIT
Informations about the package shurjopay-laravel
ShurjoPay payment gateway integration for Laravel
This is a Laravel package for integrating ShurjoPay payment gateway in your Laravel application.
Features
- Easy to use.
- Friendly simple interface.
- Laravel Facade.
Installation
Add the dependency to your Laravel project using Composer:
Note: This package supports Laravel auto-discovery. You don't need to add the service provider manually.
Configuration
You can add ShurjoPay mercant credentials in the .env
file like below:
or you can publish the config file:
It should copy the config file to
config/shurjopay.php
of your project.
Usage Guide
Whenever you need to use Shurjopay payment gateway, just use the Shurjopay
Facade.
To make a payment
In your controller
Verify Payment
Note: You need to call this method in the callback url. The
order_id
will be available in the query string.
Shurjopay::verifyPayment
return an instance ofRaziul\Shurjopay\Data\Payment
.
Available methods in the Payment
class.
Method | Description |
---|---|
$payment->success() | Return payment success status |
$payment->failed() | Return payment failed status |
$payment->message() | Get the success/error message |
$payment->orderId() | Get the order ID |
$payment->currency() | Get currency code |
$payment->amount() | Get the amount |
$payment->customerOrderId() | Get customer order ID |
$payment->paymentMethod() | Get the payment method name |
$payment->dateTime() | Get the transaction date time |
$payment->toArray() | Get all the data as array |
Error Handling
For better error handling you can catch the
Raziul\Shurjopay\Exceptions\ShurjopayException
.
Suggestion/Issues
If you found any issues or have any suggestion then please create an issue.
You can also submit PR regarding any issues.
License
The MIT License (MIT). Please see License File for more information.
Thank You
Thanks for using this package and If you foound this package useful then consider giving it a star.