Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created November 15, 2018 18:12
Show Gist options
  • Save VantivSDK/3c1d250db79bb8938232d4573498759d to your computer and use it in GitHub Desktop.
Save VantivSDK/3c1d250db79bb8938232d4573498759d to your computer and use it in GitHub Desktop.
PHP Respond to a Retrieval Example
<?php
require __DIR__ . "/path/to/vendor/autoload.php";
use cnp\sdk\ChargebackUpdate;
use cnp\sdk\XmlParser;
$chargebackUpdate = new ChargebackUpdate();
$response = $chargebackUpdate->respondToRetrievalRequest("1234000", "Note");
$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