Skip to content

Instantly share code, notes, and snippets.

View VantivSDK's full-sized avatar
🎯
Focusing

Worldpay from FIS - eCommerce VantivSDK

🎯
Focusing
View GitHub Profile
@VantivSDK
VantivSDK / gist:2007013
Created March 9, 2012 15:27
PHP SDK- Litle Credit Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Credit
#litleTxnId contains the Litle Transaction Id returned on
#the capture or sale transaction being credited
#the amount is optional, if it isn't submitted the full amount will be credited
$credit_info = array(
'litleTxnId'=>'100000000000000002',
@VantivSDK
VantivSDK / gist:2007034
Created March 9, 2012 15:32
PHP SDK- Litle Partial Capture
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Partial Capture
#litleTxnId contains the Litle Transaction Id returned as part of the authorization
#submit the amount to capture which is less than the authorization amount
#to generate a partial capture
$capture_in = array(
'partial'=>'true',
@VantivSDK
VantivSDK / gist:2007077
Created March 9, 2012 15:38
PHP SDK- Litle Refund Transaction, stand-alone
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
# standalone credit
$credit_info = array(
'id'=> '456',
'card'=>array('type'=>'VI',
'number'=>'4100000000000001',
'expDate'=>'1213',
'cardValidationNum' => '1213'),
@VantivSDK
VantivSDK / gist:2007140
Created March 9, 2012 15:43
PHP SDK- Litle Capture Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Capture
#litleTxnId contains the Litle Transaction Id returned on the authorization
$capture_info = array(
'litleTxnId'=>'100000000000000001',
'id'=> '456',
);
@VantivSDK
VantivSDK / gist:2007176
Created March 9, 2012 15:46
PHP SDK-Litle Authorization Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Authorization
$auth_info = array(
'orderId' => '1',
'amount' => '10010',
'id'=> '456',
'orderSource'=>'ecommerce',
'billToAddress'=>array(
@VantivSDK
VantivSDK / gist:2007204
Created March 9, 2012 15:52
PHP SDK- Litle Payment full lifecycle example
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Authorization
#Puts a hold on the fund
$auth_info = array(
'id'=> '456',
'orderId' => '1',
'amount' => '10010',
'orderSource'=>'ecommerce',
@VantivSDK
VantivSDK / gist:2007219
Created March 9, 2012 15:55
PHP SDK- Litle Sale Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Sale
$sale_info = array(
'orderId' => '1',
'id'=> '456',
'amount' => '10010',
'orderSource'=>'ecommerce',
'billToAddress'=>array(
@VantivSDK
VantivSDK / gist:2242972
Created March 29, 2012 19:48
PHP SDK-Litle Void Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Void
$void_info = array(
'litleTxnId'=>'100000000000000001',
'id'=> '456'
);
@VantivSDK
VantivSDK / gist:2243093
Created March 29, 2012 20:00
PHP SDK-Litle Re-authorization Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Re authorization using the litleTxnId of a previous auth
$auth_info = array(
'litleTxnId'=>'1234567891234567891',
'id'=> '456'
);
@VantivSDK
VantivSDK / gist:2243156
Created March 29, 2012 20:07
PHP SDK-Litle Register Token Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Register an account number to receive a Litle Token
$token_info = array(
'orderId'=>'12344',
'id'=> '456',
'accountNumber'=>'1233456789103801');