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
package com.cnp.sdk.functional; | |
import com.cnp.sdk.ChargebackUpdate; | |
import com.cnp.sdk.generate.ChargebackUpdateResponse; | |
public class Example { | |
public static void main(String[] args){ | |
ChargebackUpdate cbk = new ChargebackUpdate(); | |
ChargebackUpdateResponse response = cbk.assignCaseToUser(123L, "test_user", "Test assigned to user"); |
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\ChargebackRetrieval; | |
use cnp\sdk\XmlParser; | |
$chargebackRetrieval = new ChargebackRetrieval(); | |
$response = $chargebackRetrieval->getChargebacksByArn("1111111111"); | |
$xml_response = XmlParser::getDomDocumentAsString($response); |
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\ChargebackRetrieval; | |
use cnp\sdk\XmlParser; | |
$chargebackRetrieval = new ChargebackRetrieval(); | |
$response = $chargebackRetrieval->getChargebacksByCardNumber("1111000011110000", "1018"); | |
$xml_response = XmlParser::getDomDocumentAsString($response); |
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\ChargebackRetrieval; | |
use cnp\sdk\XmlParser; | |
$chargebackRetrieval = new ChargebackRetrieval(); | |
$response = $chargebackRetrieval->getChargebackByCaseId("1333078000"); | |
$xml_response = XmlParser::getDomDocumentAsString($response); |
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\ChargebackRetrieval; | |
use cnp\sdk\XmlParser; | |
$chargebackRetrieval = new ChargebackRetrieval(); | |
$response = $chargebackRetrieval->getActionableChargebacks(true); | |
$xml_response = XmlParser::getDomDocumentAsString($response); |
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
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); |
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->respondToRetrievalRequest("1234000", "Note"); | |
$xml_response = XmlParser::getDomDocumentAsString($response); |
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->representCase("1234000", "Note"); | |
$xml_response = XmlParser::getDomDocumentAsString($response); |
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); |
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->addNoteToCase("1234000", "Note"); | |
$xml_response = XmlParser::getDomDocumentAsString($response); |