Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require __DIR__ . "/path/to/vendor/autoload.php";
- use cnp\sdk\CnpOnlineRequest;
- use cnp\sdk\XmlParser;
- $hash_in = array('id' => 'id',
- 'card' => array('type' => 'VI',
- 'number' => '4100000000000000',
- 'expDate' => '1213',
- 'cardValidationNum' => '1213'),
- 'id' => '1211',
- 'orderId' => '22@33',
- 'reportGroup' => 'Planets',
- 'orderSource' => 'ecommerce',
- 'amount' => '0');
- $initialize = new CnpOnlineRequest();
- $authorizationResponse = $initialize->authorizationRequest($hash_in);
- $response = XmlParser::getDomDocumentAsString($authorizationResponse);
- print_r($response);
- ?>
Add Comment
Please, Sign In to add comment