Skip to content

Instantly share code, notes, and snippets.

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