azimrisaldar / laravel-atom

Atom payment gateway integration in laravel 5*
1 stars 3 forks source link

Atom Payment Gateway Intergration Using Laravel 5 above version

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:- ```php /* 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);

    }