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 / Java Assign Case to User Example
Created November 15, 2018 18:15
Java Assign Case to User Example
package com.cnp.sdk.functional;
import com.cnp.sdk.ChargebackUpdate;
import com.cnp.sdk.generate.ChargebackUpdateResponse;
public class Example {
public static void main(String[] args){
ChargebackUpdate cbk = new ChargebackUpdate();
ChargebackUpdateResponse response = cbk.assignCaseToUser(123L, "test_user", "Test assigned to user");
@VantivSDK
VantivSDK / PHP Retrieve ARN Activity Example
Created November 15, 2018 18:14
PHP Retrieve ARN Activity Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackRetrieval;
use cnp\sdk\XmlParser;
$chargebackRetrieval = new ChargebackRetrieval();
$response = $chargebackRetrieval->getChargebacksByArn("1111111111");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Retrieve Card Activity Example
Created November 15, 2018 18:13
PHP Retrieve Card Activity Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackRetrieval;
use cnp\sdk\XmlParser;
$chargebackRetrieval = new ChargebackRetrieval();
$response = $chargebackRetrieval->getChargebacksByCardNumber("1111000011110000", "1018");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Retrieve Case Activity example
Created November 15, 2018 18:13
PHP Retrieve Case Activity example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackRetrieval;
use cnp\sdk\XmlParser;
$chargebackRetrieval = new ChargebackRetrieval();
$response = $chargebackRetrieval->getChargebackByCaseId("1333078000");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Retrieve Actionable Chargebacks example
Created November 15, 2018 18:12
PHP Retrieve Actionable Chargebacks example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackRetrieval;
use cnp\sdk\XmlParser;
$chargebackRetrieval = new ChargebackRetrieval();
$response = $chargebackRetrieval->getActionableChargebacks(true);
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Retrieve All chargebacks for Activity Date example
Created November 15, 2018 18:12
PHP Retrieve All chargebacks for Activity Date example
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackRetrieval;
use cnp\sdk\XmlParser;
$chargebackRetrieval = new ChargebackRetrieval();
$response = $chargebackRetrieval->getChargebacksByDate("2018-01-01");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Respond to a Retrieval Example
Created November 15, 2018 18:12
PHP Respond to a Retrieval Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackUpdate;
use cnp\sdk\XmlParser;
$chargebackUpdate = new ChargebackUpdate();
$response = $chargebackUpdate->respondToRetrievalRequest("1234000", "Note");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Represent Example
Created November 15, 2018 18:11
PHP Represent Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackUpdate;
use cnp\sdk\XmlParser;
$chargebackUpdate = new ChargebackUpdate();
$response = $chargebackUpdate->representCase("1234000", "Note");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Assume Liability Example
Created November 15, 2018 17:29
PHP Assume Liability Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackUpdate;
use cnp\sdk\XmlParser;
$chargebackUpdate = new ChargebackUpdate();
$response = $chargebackUpdate->assumeLiability("1234000", "Note");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / PHP Add Note to Case Example
Created November 15, 2018 17:28
PHP Add Note to Case Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackUpdate;
use cnp\sdk\XmlParser;
$chargebackUpdate = new ChargebackUpdate();
$response = $chargebackUpdate->addNoteToCase("1234000", "Note");
$xml_response = XmlParser::getDomDocumentAsString($response);