Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 563 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 563 Bytes

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.