addgod/laravel-omnipay
Omnipay for laravel
Installation
composer require addgod/laravel-omnipay
Publish config
php artisan vendor:publish --provider "Addgod\Omnipay\ServiceProvider"
Run migration
php artisan migrate
Usage
use Addgod\Omnipay\Models\Transaction
$transaction = Transaction::make([
'amount' => 10000
'route_to' => route('receipt.url');
]);
$transaction->purchase(); // Use for direct capture
$transaction->authorize(); // Use for reserving the amount on a card.
TODO
Make documentation for database driver usage.
Related Packages
dena-a/iran-payment
a Laravel package to handle Internet Payment Gateways for Iran Banking System
2,387
30
bummzack/omnipay-postfinance
Postfinance Gateway for the Omnipay payment processing library
57,267
6