Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baselrabia/paytabs-with-laravel
it's a PACKAGE helps in integration paytabs payment gateway with laravel framework, If you are interested to know How it's working, Watch this youtube video below
https://github.com/baselrabia/paytabs-with-laravel
laravel php
Last synced: 28 days ago
JSON representation
it's a PACKAGE helps in integration paytabs payment gateway with laravel framework, If you are interested to know How it's working, Watch this youtube video below
- Host: GitHub
- URL: https://github.com/baselrabia/paytabs-with-laravel
- Owner: baselrabia
- License: mit
- Created: 2021-01-25T08:44:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T22:28:32.000Z (almost 4 years ago)
- Last Synced: 2024-10-27T09:50:40.341Z (about 2 months ago)
- Topics: laravel, php
- Language: PHP
- Homepage: https://youtu.be/AuQiMjDxOw0
- Size: 14.6 KB
- Stars: 36
- Watchers: 4
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
Awesome Lists containing this project
README
[![Issues](https://img.shields.io/github/issues/baselrabia/paytabs-with-laravel.svg?style=flat-square)](https://github.com/baselrabia/paytabs-with-laravel/issues)
[![Stars](https://img.shields.io/github/stars/baselrabia/paytabs-with-laravel.svg?style=flat-square)](https://github.com/baselrabia/paytabs-with-laravel/stargazers)
[![Latest Version](https://img.shields.io/github/tag/baselrabia/paytabs-with-laravel.svg?style=flat-square&label=release)](https://github.com/baselrabia/paytabs-with-laravel/tags)
[![Software License](https://img.shields.io/github/license/baselrabia/paytabs-with-laravel.svg?style=flat-square)](LICENSE)
[![Total Downloads](https://img.shields.io/packagist/dt/baselrabia/paytabs-with-laravel.svg?style=flat-square)](https://packagist.org/packages/baselrabia/paytabs-with-laravel)
Paytabs With Laravelπ₯³
## Installation
Begin by installing this package through Composer. Just run following command to terminal-```php
composer require baselrabia/paytabs-with-laravel
```Once this operation completes the package will automatically be discovered for **Laravel 5.6 and above**,
- Run this line to publish package files in your app
```php
php artisan vendor:publish --provider="Basel\Paytabs\PaytabsServiceProvider"
```
- after that fire the migration command```php
php artisan migrate
```
- last step add those two fields in your `.env` file ,edit it's value with your own```php
merchant_email=**************@gmail.com
merchant_secretKey=****************************************************************
```
And make sure to change your `APP_URL`
```php
APP_URL=http://localhost:8000
```
Otherwise, the final step is to add the service provider. Open `config/app.php`, and add a new item to the providers array.
```php
'providers' => [
...
Basel\Paytabs\PaytabsServiceProvider::class,
],
```- Now add the Aliase
```php
'aliases' => [
...
'Paytabs' => Basel\Paytabs\Facades\PaytabsFacade::class,],
```
## what's happining there:
the package publish 3 files
```php
1- App/Http/Controllers/PaytabsController.php
2- App/Models/PaytabsInvoice.php
3- config/paytabs.php
```
- you are free to change what you want in the logic of these files {{ Without Deleteing π§}}
- the result of success payment will process making a paytabs invoice through the model `App/Models/PaytabsInvoice.php`
- the config file have differnt values for response languague, currancy, email and secert_key### the package has 2 routes
### Create Payment Page:
```php
http://localhost:8000/paytabs_payment
```
which call the function ( `PaytabsController@index` ) by GET Request### Verify Payment:
```php
http://localhost:8000/paytabs_response
```
the return response from paytabs which call the function ( `PaytabsController@response` ) by Post Request## test card:
### Checkout Process Demo
Please use these βtest cardβ details for your demo
```php
Name on Card: John Doe
Card Number: 4000 0000 0000 0051
Expiry: 02/22 CVV: 111
```the link for any updates =>
https://site.paytabs.com/en/checkout-process-demo/# Contributing
If you think something important is missing or should be different based on your experience, I'd love to hear it! If you have suggestions for improving this package, open an issue with your suggestion.
How to Contribute πͺ
```
- Fork the project- Create a new branch with your changes:
$ git checkout -b my-feature- Save your changes and create a commit message telling you what you did:
$ git commit -m "feature: My new feature"- Submit your changes:
$ git push origin my-feature
```License π
This repository is under MIT license. You can see the LICENSE file for more details. π---
>This project was developed with β€οΈ by **[@Basel Rabia](https://www.linkedin.com/in/baselrabia/)**
If it helped you, give it β, it will help me too π
[![Linkedin Badge](https://img.shields.io/badge/-Basel%20Rabia-292929?style=flat-square&logo=Linkedin&logoColor=white&link=https://www.linkedin.com/in/baselrabia/)](https://www.linkedin.com/in/baselrabia/)