azimrisaldar / laravel-atom
This pack is for integrating Atom payment gateway using Laravel 5 *
v1.0
2016-10-08 07:58 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~5.0|~6.0
- illuminate/support: ~5.0|~6.0
- paymentgateway/atom: dev-master
This package is not auto-updated.
Last update: 2024-05-12 03:38:29 UTC
README
This package will help you to Intergrate Atom Payment Gateway in Laravel framework
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installation
Install package using composer
composer require azimrisaldar/laravel-atom
Add the service provider to the config/app.php file in Laravel
'PaymentGateway\Atom\AtomServiceProvider::class',
Publish the config by running in your terminal
php artisan vendor:publish
Edit the config/Atompay.php. Set the Mode of Tesing for True and False...
use PaymentGateway\Atom\Facades\Atompay;
Initiate Purchase Request and Redirect using the default gateway:-
/* All Required Parameters by your Gateway */ $parameters = [ 'email' => 'xyz@xyz.com', 'phone' => '**********', 'Amount' => '100', ]; $return = Atompay::prepare($parameters); return redirect($return) ;
public function response(Request $request)
{
$response = Atompay::response($request);
dd($response);
}