Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created November 15, 2018 18:13
Show Gist options
  • Save VantivSDK/bb85460222e9f1cf29469b38b5d4ea3a to your computer and use it in GitHub Desktop.
Save VantivSDK/bb85460222e9f1cf29469b38b5d4ea3a to your computer and use it in GitHub Desktop.
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);
print_r($xml_response);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment