laravel-pay / bank-misr
This is my package bank-misr
dev-master
2023-08-25 06:28 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is not auto-updated.
Last update: 2024-11-06 09:59:31 UTC
README
Bank Misr (EGYPT) driver for the Laravel Pay package.
Contents
Installation
You can install the package via composer:
composer require laravel-pay/bank-misr
You can publish the config file with:
php artisan vendor:publish --tag="bank-misr-config"
This is the contents of the published config file:
return [ "merchant" => [ "id" => env("BANK_MISR_MERCHANT_ID"), "password" => env("BANK_MISR_MERCHANT_PASSWORD"), "name" => env("BANK_MISR_MERCHANT_NAME"), ], "currency" => "EGP", "success_url" => env("BANK_MISR_SUCCESS_URL"), "fail_url" => env("BANK_MISR_FAIL_URL"), ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="bank-misr-views"
Usage
Route::get("/" , function(){ $form = BankMisr::setOrderId(11111) ->setSuccessUrl("success") ->setFailUrl("fail") ->setAmount(100.12) ->setDescription("test") ->getForm(); return view("welcome" , [ "form" => $form ]); }); Route::get("/success" , function(){ dd("success" , request()->all()); })->name("success"); Route::get("/fail" , function(){ dd("fail" , request()->all()); })->name("fail");
Changelog
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Security
Please review our security policy on how to report security vulnerabilities.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.