supplyhog / bt-auth-php

A PHP interface implementation of the Blue Tarp Financial Authorization API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bt-auth-php

A PHP interface implementation of the Blue Tarp Financial Authorization API.

Features

  • Use all current (as of V1) POST and GET methods of the Blue Tarp Financial Auth API.
  • All responses are in a PHP array, with only the relevant sections present.

Example Request

$bt = BlueTarp($yourMerchantNumber, $yourClientKey);

$auth = $bt->authorizeSale($purchaserTokenOrNumber, $dollarAmount);

$response = $auth['BT:MESSAGE'];

Auth Responses

[BT:CODE]
[BT:MESSAGE]
[BT:TRANSACTION]
[BT:AUTH-SEQ]
[BT:APPROVAL-CODE]

Customer Response

[BT:CUSTOMER] => Array
	[BT:NUMBER]
	[BT:NAME]
	[BT:STATUS]
	[BT:REASON]
	[BT:ADDRESS] => Array
		[BT:LINE1]
		[BT:CITY]
		[BT:STATE]
		[BT:ZIP]
	[BT:PURCHASERS] => Array
		[BT:PURCHASER] => Array
			[BT:LAST4]
			[BT:NAME]
			[BT:TOKEN]

Transaction Response

[BT:TRANSACTION] => Array
  [BT:AMOUNT]
  [BT:AUTH-SEQ]
  [BT:INVOICE]
  [BT:JOB-CODE]
  [BT:CUSTOMER] => Array
  	[BT:NUMBER]
  	[BT:NAME]
  	[BT:PURCHASERS] => Array
  		[BT:PURCHASER] => Array
  			[BT:LAST4]
  			[BT:NAME]
  			[BT:TOKEN]

Additional Information

About

A PHP interface implementation of the Blue Tarp Financial Authorization API.

License:MIT License


Languages

Language:PHP 100.0%