jalallinux / laravel-tomanpay
Laravel Tomanpay integration Client
Fund package maintenance!
reymit.ir/jalallinux
Requires
- php: ^8.0|^8.1|^8.2
- guzzlehttp/guzzle: ^7.0
- illuminate/contracts: ^9.0|^10.0
- illuminate/http: ^9.0|^10.0
- illuminate/support: ^9.0|^10.0
- spatie/laravel-enum: ^3.0
Requires (Dev)
- laravel/pint: *
- orchestra/testbench: ^7.0|^8.0
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2024-12-09 15:45:50 UTC
README
Toman's financial solutions help you to easily and quickly manage your business's financial flows comprehensively, focus on the value you create in your product and not worry about its financial affairs and processes.
Installation
You can install the package via composer
composer require jalallinux/laravel-tomanpay
Publish config file
You can publish config file to change default configs
php artisan vendor:publish --provider JalalLinuX\\Tomanpay\\TomanpayServiceProvider --tag config
Usage
The main methods are called statically
use \JalalLinuX\Tomanpay\Model\Payment; // Create new payment Payment::create(1000, 'https://site.com/callback/path'): Payment // Fetch an exists payment detail Payment::detail('7cadba50-6059-424e-9580-c12448a8046e'): Payment // Get list of payments Payment::list(): LengthAwarePaginator // Verify an exist payment Payment::verify('7cadba50-6059-424e-9580-c12448a8046e', false): bool // Redirect an exist payment to PSP Payment::redirect('7cadba50-6059-424e-9580-c12448a8046e'): RedirectResponse
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.