Created
November 15, 2018 17:29
-
-
Save VantivSDK/b7897ba332b829035860c1662fccf960 to your computer and use it in GitHub Desktop.
PHP Assume Liability Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . "/path/to/vendor/autoload.php"; | |
use cnp\sdk\ChargebackUpdate; | |
use cnp\sdk\XmlParser; | |
$chargebackUpdate = new ChargebackUpdate(); | |
$response = $chargebackUpdate->assumeLiability("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