| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: uc_paygate.module,v 1.1 2008/09/12 16:28:57 maxheadroom Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 268 |
case '1': |
case '1': |
| 269 |
$order = uc_order_load($REFERENCE); |
$order = uc_order_load($REFERENCE); |
| 270 |
$output = uc_cart_complete_sale($order, variable_get('uc_new_customer_login', FALSE)); |
$output = uc_cart_complete_sale($order, variable_get('uc_new_customer_login', FALSE)); |
| 271 |
|
uc_payment_enter($order->order_id, 'PayGate', $AMOUNT/100, 0, NULL, check_plain($RESULT_DESC)); |
| 272 |
// Add a comment to let sales team know this came in through the site. |
// Add a comment to let sales team know this came in through the site. |
| 273 |
uc_order_comment_save($order->order_id, 0, t('Order created through website.'), 'admin'); |
uc_order_comment_save($order->order_id, 0, t('Order created through website.'), 'admin'); |
| 274 |
watchdog('Paygate', t('Receiving new order notification for order !order_id.', array('!order_id' => check_plain($TRANSACTION_ID)))); |
watchdog('Paygate', t('Receiving new order notification for order !order_id.', array('!order_id' => check_plain($TRANSACTION_ID)))); |