This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargebacks_by_arn(arn: "1111111111") | |
puts response.transactionId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargebacks_by_card_number(card_number: "1111000011110000", expiration_date: "0118") | |
puts response.transactionId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargeback_by_case_id(case_id: "1333078000") | |
puts response.transactionId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_actionable_chargebacks(actionable: "true") | |
puts response.transactionId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargebacks_by_date(activity_date: "2018-01-01") | |
puts response.transactionId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response = ChargebackUpdate.new.respond_to_retrieval_request(case_id: 10000, note: "Test note") | |
puts response.transactionId |