dosarkz / laravel-paybox
Acquiring system for accepting payments PayBox.money
Installs: 367
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 4
Open Issues: 0
pkg:composer/dosarkz/laravel-paybox
Requires
- php: ^7.4|^8.0
- ext-curl: *
- guzzlehttp/guzzle: ^7.0.1
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-10-26 14:34:50 UTC
README
List of available functional
- Creating a new payment
- Receiving information about the payment
Installation
- Install the package via composer:
composer require dosarkz/laravel-paybox - Publish configuration file:
php artisan vendor:publish --tag paybox-config - Set
merchant_idandsecret_keyin the env file
Usage
Env file
PAYBOX_GATEWAY_URL=https://api.paybox.money
PAYBOX_MERCHANT_ID=
PAYBOX_SECRET_KEY=
PAYBOX_SALT=your_secret
PAYBOX_CHECK_URL=
PAYBOX_RESULT_URL=
Generate new order
use Dosarkz\Paybox\Facades\Paybox; class OrdersController extends Controller { public function pay(Order $order) { ... return Paybox::generate([ 'pg_order_id' => '', 'pg_merchant_id' => '', 'pg_amount' => 100, 'pg_description' => "Test", 'pg_salt' => '', 'pg_check_url' =>'', 'pg_result_url' => '', ]); } }
Get information about payment
return Paybox::paymentInfo([ 'pg_merchant_id' => '', 'pg_payment_id' => '', 'pg_order_id' => '', 'pg_salt' => '' ]);
License
The MIT License (MIT). Please see License File for more information.