PHP code example of baselrabia / paytabs-with-laravel

1. Go to this page and download the library: Download baselrabia/paytabs-with-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

baselrabia / paytabs-with-laravel example snippets


composer 

php artisan vendor:publish --provider="Basel\Paytabs\PaytabsServiceProvider"

php artisan migrate

merchant_email=**************@gmail.com
merchant_secretKey=****************************************************************

APP_URL=http://localhost:8000

'providers' => [
	...
	Basel\Paytabs\PaytabsServiceProvider::class,
],

'aliases' => [
	...
	'Paytabs' => Basel\Paytabs\Facades\PaytabsFacade::class,

],


1- App/Http/Controllers/PaytabsController.php
2- App/Models/PaytabsInvoice.php
3- config/paytabs.php

http://localhost:8000/paytabs_payment

http://localhost:8000/paytabs_response


Name on Card:  John Doe
Card Number:  4000 0000 0000 0051
Expiry:  02/22  CVV:  111