A simple, easy to use Laravel wrapper for Elavon's Converge API via key value pairs instead of XML.
You can install the package via composer:
composer require treestoneit/laravel-converge-api
You can publish the config file with:
php artisan vendor:publish --provider="Treestoneit\LaravelConvergeApi\LaravelConvergeApiServiceProvider" --tag="config"
This is the contents of the published config file:
return [
/*
* Merchant ID: Elavon-assigned Converge account ID.
*/
'merchant_id' => env('CONVERGE_MERCHANT_ID', ''),
/*
* Converge User ID: The user ID with Hosted Payment API User status that
* can send transaction requests through the terminal.
*/
'user_id' => env('CONVERGE_USER_ID', ''),
/*
* Terminal ID: Unique identifier of the terminal that will process the
* transaction request and submit to the Converge gateway.
*
* Important: The ssl_user_id sending the transaction request must be
* associated with the terminal that will process the request.
*/
'pin' => env('CONVERGE_PIN', ''),
/*
* Demo / Live Site
*/
'demo' => env('CONVERGE_DEMO', true),
];
$converge = app(\Treestoneit\LaravelConvergeApi\Converge::class);
$createSale = $converge->authOnly([
'ssl_card_number' => '5121212121212124',
'ssl_exp_date' => '0325',
'ssl_cvv2cvc2' => '321',
'ssl_amount' => '250.00',
'ssl_add_token' => 'Y',
]);
On our todo list :-)
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
This package is built as a Laravel wrapper using the code in PHP Converge API built by Phillip Roth
The MIT License (MIT). Please see License File for more information.