arniro / laravel-paybox
A Laravel wrapper for Paybox payment
Installs: 472
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/arniro/laravel-paybox
Requires
- php: ^7.1.3|^8.0
- illuminate/support: ~6|~7|~8
Requires (Dev)
- orchestra/testbench: >=3.8
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-09-29 02:43:20 UTC
README
Only receiving payments are currently supported.
Installation
- Install the package via composer:
composer require arniro/laravel-paybox - Publish configuration file:
php artisan vendor:publish --tag paybox-config - Set
merchant_idandsecret_keyin the config file
Usage
All you need to do is to redirect a user to the generated url of a Paybox website:
use Arniro\Paybox\Facades\Paybox; class OrdersController extends Controller { public function store() { ... return Paybox::generateUrl([ 'price' => 500, 'description' => 'Products description', 'order_id' => 123456, 'email' => 'john@company.com', 'phone' => '123456789', 'name' => 'John Doe', 'address' => 'Dummy address' ])->redirect(); } }
You can also override any configuration values except merchant_id and secret_key while generating an url:
return Paybox::generateUrl([ ..., 'currency' => 'KZT' ])->redirect();
By default, all payments will be made in the testing mode until you're in production. Feel free to change this behaviour in the configuration file.
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.