paymob / laravel-bagisto2.x
Paymob Payment Method for Bagisto
Installs: 474
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Forks: 0
pkg:composer/paymob/laravel-bagisto2.x
Requires
- paymob/php-library: 1.0.*
This package is not auto-updated.
Last update: 2025-10-27 14:56:59 UTC
README
Installation
- Install the Paymob Payment module for Laravel Bagisto 2.x e-commerce via paymob/laravel-bagisto2.x composer. - composer require paymob/laravel-bagisto2.x
- In the command line, run the below commands - php artisan vendor:publish --force --tag=paymob php artisan migrate php artisan optimize
- Goto app/Http/Middleware/VerifyCsrfToken.php file. Then, add paymob/callback in the protected array $except as below - protected $except = ['paymob/callback',];
- In the command line, run the below command - php artisan config:cache
Configuration
Paymob Account
- Login to the Paymob account → Setting in the left menu.
- Get the Secret, public, API keys, HMAC and Payment Methods IDs (integration IDs).
Bagisto Admin Configuration
- In Bagisto Admin Panel Menu configuration→ sales→ paymentmethods.
- Search for Paymob payment, paste each key in its place in the setting page.
- Please ensure adding the integration IDs separated by comma ,. These IDs will be shown in the Paymob payment page.
- Copy integration callback URL that exists in Paymob Bagisto setting page. Then, paste it into each payment integration/method in Paymob account.
Checkout page
Paymob payment method will be shown for the end-user to select and start his payment process.