Пример #1
0
 function success($Purchase)
 {
     if ($Purchase->id) {
         require_once SHOPP_ADDONS . '/BillmateCore/BillMate.php';
         include_once SHOPP_ADDONS . "/BillmateCore/lib/xmlrpc.inc";
         include_once SHOPP_ADDONS . "/BillmateCore/lib/xmlrpcs.inc";
         $pno = '';
         $eid = (int) $this->settings['merchantid'];
         $key = $this->settings['secretkey'];
         $ssl = true;
         $debug = false;
         $k = new BillMate($eid, $key, $ssl, $debug);
         $rno = $this->Order->billmateId;
         $k->UpdateOrderNo($rno, $Purchase->id);
     }
 }
Пример #2
0
 function success($Purchase)
 {
     if ($Purchase->id) {
         $pno = '';
         $eid = (int) $this->settings['merchantid'];
         $key = $this->settings['cardpaysecret'];
         $ssl = true;
         $debug = false;
         $k = new BillMate($eid, $key, $ssl, $debug);
         $rno = $this->Order->billmateId;
         $k->UpdateOrderNo($rno, $Purchase->id);
     }
 }