Skip to content

addgod/laravel-omnipay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages