2017 © Pedro Peláez
 

library laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

image

jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  • Friday, March 30, 2018
  • by jundelleb
  • Repository
  • 2 Watchers
  • 2 Stars
  • 885 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

Laravel - USAePay

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Installation

Install using composer:, (*2)

composer require jundelleb/laravel-usaepay

Add the service provider in app/config/app.php:, (*3)

PhpUsaepay\ServiceProvider::class,

Configuration

Now publish the configuration files to config/usaepay.php:, (*4)

$ php artisan vendor:publish

This package supports configuration through the services configuration file located in config/usaepay.php:, (*5)

Usage

Basic Usage of USAePay:, (*6)

<?php

$sourcekey = 'your_source_key';
$sourcepin = 'your_source_pin';
$sandbox = true;
$options = [
    'debug' => true,
];

$usaepay = new \PhpUsaepay\Client($sourcekey, $sourcepin, $sandbox, $options);

Example

This package takes care of the creation of ueSecurityToken., (*7)

Find CustNum using searchCustomerID method

<?php

$custID = '21021';

$custNum = $usaepay->searchCustomerID($custID);

Reference: https://wiki.usaepay.com/developer/soap-1.6/methods/searchcustomerid, (*8)

Run sale using runTransaction method

<?php

$request = [
    'Command' => 'sale',
    'AccountHolder' => 'John Doe',
    'Details' => [
      'Description' => 'Example Transaction',
      'Amount' => '4.00',
      'Invoice' => '44539'
    ],
    'CreditCardData' => [
      'CardNumber' => '4444555566667779',
      'CardExpiration' => '0919',
      'AvsStreet' => '1234 Main Street',
      'AvsZip' => '99281',
      'CardCode' => '999'
    ]
];

$result = $usaepay->runTransaction($request);

Reference: https://wiki.usaepay.com/developer/soap-1.6/methods/runtransaction, (*9)

Refer to this link for the complete lists of methods: http://wiki.usaepay.com/developer/soap-1.6/Support#methods, (*10)

The Versions

30/03 2018

dev-master

9999999-dev https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

The Requires

 

by Jundelle Boyles

laravel api php usaepay

30/03 2018

v2.0.2

2.0.2.0 https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

The Requires

 

by Jundelle Boyles

laravel api php usaepay

30/03 2018

dev-develop

dev-develop https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

The Requires

 

by Jundelle Boyles

laravel api php usaepay

30/03 2018

v2.0.1

2.0.1.0 https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

The Requires

 

by Jundelle Boyles

laravel api php usaepay

25/10 2017

dev-feature/env-vars-support

dev-feature/env-vars-support https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

The Requires

 

by Jundelle Boyles

laravel api php usaepay

19/02 2016

dev-laravel-4.2

dev-laravel-4.2 https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

by Jundelle Boyles

laravel api php usaepay

19/02 2016

v0.2-beta-1

0.2.0.0-beta1 https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

by Jundelle Boyles

laravel api php usaepay

19/02 2016

v2.0.0

2.0.0.0 https://github.com/jundelleb/laravel-usaepay

A PHP library that allows you to connect to USAePay gateway and run transactions with less configurations needed.

  Sources   Download

MIT

The Requires

 

by Jundelle Boyles

laravel api php usaepay