2017 © Pedro Peláez
 

library laravel-first-data

First Data Wrapper for Laravel 4

image

imcorleone/laravel-first-data

First Data Wrapper for Laravel 4

  • Saturday, December 20, 2014
  • by imcorleone
  • Repository
  • 3 Watchers
  • 4 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

LARAVEL FIRST DATA

OVERVIEW

This was created as a side project for a laravel application which requires constanc first data processes., (*1)

INSTALLATION

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'
    ...
)

CONFIGURATION

    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'
    ];

FUNCTIONS

As the time of this writing and commit there is two functions that the API can process, (*3)

  • Pre Authentication
  • Purchase

AUTHENTICATION

    $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)

PURCHASE

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); 

CARD DETAILS LIST

  • type - Credit Card Type
  • number - Credit Card Number
  • name - Credit Card Holder Name
  • expiration - Credit Card Expiration
  • zipcode - Credit Card Address Zipcode
  • cvv - Credit Card Verification Value
  • address - Credit Card Holder Address

CREDITS

https://github.com/VinceG/php-first-data-api, (*6)

LICENSE

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)

The Versions

20/12 2014

dev-master

9999999-dev

First Data Wrapper for Laravel 4

  Sources   Download

The Requires

 

by Gian Santillan