PHP code example of lucasgiovanny / laravel-erede

1. Go to this page and download the library: Download lucasgiovanny/laravel-erede library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lucasgiovanny / laravel-erede example snippets


use  lucasgiovanny\ERede\Facades\Rede;

use  lucasgiovanny\ERede\Facades\Rede;

$creditCard = [
'cardNumber'  =>  "5448280000000007",
'cardCvv' => '123'
'cardExpirationMonth'  =>  '12',
'cardExpirationYear'  =>  '2020',
'cardHolder'  =>  'Walter White',
];

$transaction = Rede::authorize(100.99, 'Order 45', $creditCard);

if ($transaction->getReturnCode() == '00') {
    printf("Success! tid=%s\n", $transaction->getTid());
}

use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::cancel('TID123');

use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::get('TID123');

use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::getByReference('TID123');

use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::getRefunds('TID123');