Download the PHP package lucasgiovanny/laravel-erede without Composer
On this page you can find all versions of the php package lucasgiovanny/laravel-erede. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-erede
eRede API for Laravel
THIS PROJECT IS NO LONGER BEING MAINTAINED
This package makes it easy to use eRede PHP SDK with Laravel framework.
Contents
-
Installation
-
Usage
-
Changelog
-
Testing
-
Security
-
Contributing
-
Credits
- License
Installation
This package can be installed via composer:
composer require lucasgiovanny/laravel-erede
Set the enviroments variables in your .env
file
Usage
To use this package, you just need to import the Rede Facades.
Available methods
authorize
: Authorize a transaction with creditcard.cancel
: Cancel a transaction.get
: Find a transaction by id.getByReference
: Find a transaction by reference.getRefunds
: Find transaction refunds.
authorize
Param | Type | Default |
---|---|---|
total | float (required) | |
reference | string (required) | |
creditcard | array (required) | |
capture | bool | true |
installments | int | 1 |
Example:
-
Transactions are captured by default, if you don't want this, you can set the capture parameter to
false
. - To set installments, just use the last parameter.
cancel
Param | Type |
---|---|
transaction | string (required) |
Example:
get
Param | Type |
---|---|
transaction | string (required) |
Example:
getByReference
Param | Type |
---|---|
reference | string (required) |
Example:
getRefunds
Param | Type |
---|---|
transaction | string (required) |
Example:
To do List
- Tests
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Test needs to be written. Feel free to collaborate.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.