A multi driver ir payment laravel package
- Run the command below to add this paymentable:
composer require laravelir/paymentable
- Open your config/app.php and add the following to the providers / aliases array:
Laravelir\Paymentable\Providers\PaymentableServiceProvider::class, // provider
'Cart' => Laravelir\Cart\Facade\Cart::class, // alias
- Run the command below to install the package:
php artisan paymentable:install
$user = auth()->user;
$amount = 5000; // toman
$paymentResult = Paymentable::payment($user, $toman);
if($paymentResult->is_success()) {
$transactionId = $paymentResult->transactionId();
return $paymentResult->redirectToGateway();
}
// callback
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.