Skip to content

Instantly share code, notes, and snippets.

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