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 / PHP Assign Case to User Example
Created November 15, 2018 17:28
PHP Assign Case to User Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackUpdate;
use cnp\sdk\XmlParser;
$chargebackUpdate = new ChargebackUpdate();
$response = $chargebackUpdate->assignCaseToUser("1234000", "User0", "Note");
$xml_response = XmlParser::getDomDocumentAsString($response);
@VantivSDK
VantivSDK / Python Retrieve ARN Activity Example
Created November 15, 2018 17:27
Python Retrieve ARN Activity Example
from cnpsdk import chargeback_retrieval
response = chargeback_retrieval.get_chargebacks_by_arn("1111111111")
@VantivSDK
VantivSDK / Python Retrieve Card Activity Example
Created November 15, 2018 17:27
Python Retrieve Card Activity Example
from cnpsdk import chargeback_retrieval
response = chargeback_retrieval.get_chargebacks_by_card_number("1111000011110000", "0118")
@VantivSDK
VantivSDK / Python Retrieve Case Activity example
Created November 15, 2018 17:26
Python Retrieve Case Activity example
from cnpsdk import chargeback_retrieval
response = chargeback_retrieval.get_chargeback_by_case_id("1333078000")
@VantivSDK
VantivSDK / Python Retrieve Actionable Chargebacks example
Created November 15, 2018 17:26
Python Retrieve Actionable Chargebacks example
from cnpsdk import chargeback_retrieval
response = chargeback_retrieval.get_actionable_chargebacks("true")
@VantivSDK
VantivSDK / Python Retrieve All chargebacks for Activity Date example
Created November 15, 2018 17:26
Python Retrieve All chargebacks for Activity Date example
from cnpsdk import chargeback_retrieval
response = chargeback_retrieval.get_chargebacks_by_date("2018-01-01")
@VantivSDK
VantivSDK / Python Respond to a Retrieval Example
Created November 15, 2018 17:25
Python Respond to a Retrieval Example
from cnpsdk import chargeback_update
response = chargeback_update.respond_to_retrieval_request(10000, "Test note")
@VantivSDK
VantivSDK / Python Represent Example
Created November 15, 2018 17:25
Python Represent Example
from cnpsdk import chargeback_update
response = chargeback_update.represent_case(10000, "Test note", 12000)
@VantivSDK
VantivSDK / Python Assume Liability Example
Created November 15, 2018 17:24
Python Assume Liability Example
from cnpsdk import chargeback_update
response = chargeback_update.assume_liability(10000, "Test note")
@VantivSDK
VantivSDK / Python Add Note to Case Example
Created November 15, 2018 17:24
Python Add Note to Case Example
from cnpsdk import chargeback_update
response = chargeback_update.add_note_to_case(10000, "Test note")