Tutorial Extension  1.0.0
SellerDeck Extensions - Tutorial Extension
handshaking.php
1 <?php
2 date_default_timezone_set('GMT');
3 
4 require_once('../../framework/constants.php');
5 require_once(CLASSES_ROOT . 'helper/Tools.php');
6 require_once(CLASSES_ROOT . 'CAbstractHandshaking.php');
7 require_once(CLASSES_APP_ROOT . 'CHandshaking.php');
8 
9 try
10  {
11  $sInitMessage = file_get_contents('php://input');
12  $aInitMessage = @xml2array($sInitMessage);
13  echo (new CHandshaking($aInitMessage))->SetHeader()->GetResponse();
14  }
15 catch (Exception $oException)
16  {
17  die($oException->getMessage());
18  }
19