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:2243367
Created March 29, 2012 20:25
PHP SDK-Litle Sale w/Token Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Sale using a previously registered token
$sale_info = array(
'orderId' => '1',
'id'=> '456',
'amount' => '10010',
'orderSource'=>'ecommerce',
'billToAddress'=>array(
@VantivSDK
VantivSDK / gist:2283749
Created April 2, 2012 14:19
PHP SDK- Litle Partial Auth Reversal Tranasaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Partial Auth Reversal
#litleTxnId contains the Litle Transaction Id returned on the authorization
$authRev_info = array(
'litleTxnId'=>'350000000000000001',
'amount'=>'20020'
);
@VantivSDK
VantivSDK / Default.aspx
Last active May 6, 2019 01:36
.NET SDK - Litle ASP.NET Simple Example
<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
CodeBehind="Default.aspx.vb" Inherits="VBLitleDemoWebApp._Default" %>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
Response Code: <asp:Label runat="server" id="LitleAuthResponseCode"></asp:Label><br />
Response Message: <asp:Label runat="server" id="LitleAuthResponseMessage"></asp:Label><br />
Response Transaction Id: <asp:Label runat="server" id="LitleAuthResponseLitleTxnId"></asp:Label><br />
</asp:Content>
@VantivSDK
VantivSDK / hotHotConfigurations
Created January 9, 2019 19:35
Configuration parameters for Hot-Hot feature
| Name | Example | Description |
| ----------------------- | --------| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| multiSite | false | Specifies if multi-site feature is enabled. Contact your RM to determine if you are eligible. Will cause transaction failures if set to true without Worldpay approval. |
| printMultiSiteDebug | false | If true and multiSite is true, will print debug messages on multi-site handling |
| multiSiteErrorThreshold | 5 | If multiSite is true, specifies the number of consecutive communication errors before switches to alternate site
@VantivSDK
VantivSDK / Ruby Retrieve ARN Activity Example
Created November 15, 2018 21:29
Ruby Retrieve ARN Activity Example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargebacks_by_arn(arn: "1111111111")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve Card Activity Example
Created November 15, 2018 21:28
Ruby Retrieve Card Activity Example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargebacks_by_card_number(card_number: "1111000011110000", expiration_date: "0118")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve Case Activity example
Created November 15, 2018 21:28
Ruby Retrieve Case Activity example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargeback_by_case_id(case_id: "1333078000")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve Actionable Chargebacks example
Created November 15, 2018 21:28
Ruby Retrieve Actionable Chargebacks example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_actionable_chargebacks(actionable: "true")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve All chargebacks for Activity Date example
Created November 15, 2018 21:28
Ruby Retrieve All chargebacks for Activity Date example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargebacks_by_date(activity_date: "2018-01-01")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Respond to a Retrieval Example
Created November 15, 2018 21:27
Ruby Respond to a Retrieval Example
require 'CnpChargeback'
include CnpChargeback
response = ChargebackUpdate.new.respond_to_retrieval_request(case_id: 10000, note: "Test note")
puts response.transactionId