Skip to content

Instantly share code, notes, and snippets.

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