azimrisaldar/laravel-atom

This pack is for integrating Atom payment gateway using Laravel 5 *

Downloads

31

Stars

1

Version

v1.0

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:-

      /* All Required Parameters by your Gateway */
      
      $parameters = [
        'email'        => '[email protected]',
        'phone'        => '**********',
        'Amount'        => '100',
      ];
        
        $return = Atompay::prepare($parameters);

        return redirect($return) ;
 
    public function response(Request $request)
    
    {
        
        $response = Atompay::response($request);

        dd($response);
    
    }  
azimrisaldar

Author

azimrisaldar