dev-master
9999999-devFirst Data Wrapper for Laravel 4
The Requires
by Gian Santillan
Wallogit.com
2017 © Pedro Peláez
First Data Wrapper for Laravel 4
This was created as a side project for a laravel application which requires constanc first data processes., (*1)
To install package you have to include the following in the composer.json, (*2)
"imcorleone/laravel-first-data": "dev-master"
````
###LARAVEL 4 INTEGRATION
run the following in the `CLI`
`php artisan config:publish imcorleone/laravel-first-data`
```php
//location: app.php
'aliases' => array(
...
'FirstData' => 'Imcorleone\LaravelFirstData\Facades\Facade'
...
),
'providers' => array(
...
'Imcorleone\LaravelFirstData\LaravelFirstDataServiceProvider'
...
)
return [
/**
* DEMO FLAG /
* ------------
* Used to flag if the system is to use a demo entry point for
* First Data
*/
'demo' => true,
/**
* API KEY /
* ---------
*
*/
'API_KEY' => 'YOUR API KEY HERE',
/**
* API LOGIN /
* -----------
*
*/
'API_LOGIN' => 'YOUR API LOGIN'
];
As the time of this writing and commit there is two functions that the API can process, (*3)
$firstData = App::make('firstdata');
$firstData->auth($cardDetails); //returns true or false
First Data Pre Authentication sends a Zero Dollar Value to the First Data Entry Point, (*4)
Parameters:
* card Details - see card Details list
* transaction number - reference number for the purchase
* amount - the amount to be purchased using the card, (*5)
$firstData = App::make('firstdata');
$firstData->auth($cardDetails, $transNumber, $amount);
type - Credit Card Typenumber - Credit Card Numbername - Credit Card Holder Nameexpiration - Credit Card Expirationzipcode - Credit Card Address Zipcodecvv - Credit Card Verification Valueaddress - Credit Card Holder Addresshttps://github.com/VinceG/php-first-data-api, (*6)
The MIT License (MIT), (*7)
Copyright (c) 2013 - Vincent Gabriel, (*8)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*9)
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*10)
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*11)
First Data Wrapper for Laravel 4