daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Nov 15th, 2018 83 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <?php
  2.  
  3. require __DIR__ . "/path/to/vendor/autoload.php";
  4.  
  5. use cnp\sdk\CnpOnlineRequest;
  6. use cnp\sdk\XmlParser;
  7.  
  8. $hash_in = array('id' => 'id',
  9.     'card' => array('type' => 'VI',
  10.         'number' => '4100000000000000',
  11.         'expDate' => '1213',
  12.         'cardValidationNum' => '1213'),
  13.     'id' => '1211',
  14.     'orderId' => '22@33',
  15.     'reportGroup' => 'Planets',
  16.     'orderSource' => 'ecommerce',
  17.     'amount' => '0');
  18.  
  19. $initialize = new CnpOnlineRequest();
  20. $authorizationResponse = $initialize->authorizationRequest($hash_in);
  21. $response = XmlParser::getDomDocumentAsString($authorizationResponse);
  22.  
  23. print_r($response);
  24. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top