Ejemplo n.º 1
0
12 = Instant Capture failed
13 = Recurring payments not allowed
14 = OrderID must be unique within same date
15 = Customer number for recurring payment must be unique
16 = Recurring Subscribtion - max recurring limit reached (Max antal abonnementer nået - Kontakt DanDomain)
17 = Invalid CurrencyID (Ugyldig valutaid)
18 = Fejl i recurring customer - tjek her fejlkode fra PBS

200 = Disse autorisationer er foretaget via Pay Webservice

*/
$status =  "$errorcode: " . $errordes[$errorcode];

if (($errorcode <> 4)&&($errorcode <> 2))
{
sendreceipt();
}
?>
</body>
</html>

<?







?>
Ejemplo n.º 2
0
 function ok($orderkey = '', $member = '')
 {
     $this->jquery->script('/ressources/jquery-1.6.2.min.js', TRUE);
     //		$js =$this->jquery->corner('#tt_del');
     $this->javascript->output($js);
     $this->javascript->compile();
     // http://kbhff.skrig.dk/pay/ok?transact=19109947&OrderID=13&Attempts=1&Cardnumber=XXXXXXXXXXXX0121
     $transact = $this->input->get_post('transact', true);
     $OrderID = $this->input->get_post('OrderID', true);
     $Cardnumber = $this->input->get_post('Cardnumber', true);
     $today = strftime("%Y-%m-%d", time());
     $kvit = kvitgetorderhead($OrderID, $orderkey, $transact, $Cardnumber);
     $emailkvittering = kvitgetorderlines($OrderID, $orderkey, $kvit['kvittering']);
     $kvittering = htmlentities($emailkvittering);
     $kvittering = nl2br($kvittering);
     if (getreceiptstatus($OrderID) > '') {
         // er sendt
     } else {
         senderrormail("ok - kvittering ikke sendt - {$OrderID}, {$today}, {$transact}");
         sendreceipt($emailkvittering, $OrderID, $kvit['email'], $kvit['firstname'], $kvit['middlename'], $kvit['lastname']);
         // Update status for Order
         updateorderhead($OrderID, $transact, $Cardnumber, ' ok');
         updatetransactions($OrderID, $transact, $kvit['uid']);
     }
     if ($member) {
         $membercontent = '<br>Velkommen som nyt medlem!';
         $this->_activate_new_member($OrderID, $kvit['uid']);
     }
     $data = array('title' => 'Registrering af betaling', 'heading' => 'Registrering af betaling, trin 5/5', 'content' => '<strong>Ordre ' . $OrderID . ' er betalt.</strong>' . $membercontent . '<br>' . $kvittering);
     $this->load->view('page_noscript', $data);
 }
Ejemplo n.º 3
0
 function _createorder_old($uid, $itemid, $created_by, $quant, $pickupdates, $method, $division)
 {
     $neworder = createuniqueorderno($uid, 'kontant');
     // Create orderlines
     $orderno = $neworder['orderno'];
     $orderkey = $neworder['orderkey'];
     $price = $this->_getitemprice($division);
     if ($price['error'] == '') {
         $status3 = 'OK';
     } else {
         $status3 = 'priceerror';
     }
     $vat_amount = 0;
     // To be handled elsewhere
     $no_of_days = 0;
     while (list($key, $date) = each($pickupdates)) {
         $no_of_days++;
         $lineamount = $price['price'] * $quant;
         $this->_insertorderline($orderno, $orderkey, $uid, $itemid, $quant, $lineamount, $vat_amount, $created_by, $date, $status3);
     }
     $amount = $quant * $price['price'] * $no_of_days;
     $this->_updateorderhead($orderno, $orderkey, $amount, $vat_amount, $status3, $method, $created_by);
     $this->_update_kontant_transactions($orderno, $uid, $amount);
     $kvit = kvitgetorderhead($orderno, $orderkey, '', '');
     $emailkvittering = kvitgetorderlines($orderno, $orderkey, $kvit['kvittering']);
     sendreceipt($emailkvittering, $orderno, $kvit['email'], $kvit['firstname'], $kvit['middlename'], $kvit['lastname']);
     $return = array();
     $return['orderno'] = $orderno;
     $return['amount'] = $amount;
     return $return;
 }
Ejemplo n.º 4
0
<?
$today = strftime("%Y-%m-%d", time());

//GET /ressources/admin/ok_hidden.php?transact=19194924&OrderID=108&CardType=Visa%2Fdankort&Attempts=1&AttemptsFromIPToday=1&Cardnumber=XXXXXXXXXXXX0121 
//			senderrormail("debug 334khidden - '$OrderID', '$transact', '$Cardnumber'");
$tmp = getreceiptstatus($OrderID);
if (getreceiptstatus($OrderID)> '')	// ff_orderhead.status3
{
	// echo ("'$tmp' kvittering sendt");
} else {
	// echo ("'$tmp' sender kvittering");
	$SessionID = '';
	$kvit = kvitgetorderhead($OrderID, $SessionID, $transact, $Cardnumber);
	$emailkvittering = kvitgetorderlines($OrderID, $SessionID, $kvit['kvittering']);
	sendreceipt($emailkvittering, $OrderID, $kvit['email'], $kvit['firstname'], $kvit['middlename'], $kvit['lastname']);
	updatetransactions($OrderID, $transact, $kvit['uid']);
}

updateorderhead($OrderID, $transact, $Cardnumber, ' hidden');
setpaid($OrderID);

?>

</body>
</html>


<?