/[drupal]/contributions/modules/uc_paygate/uc_paygate.module
ViewVC logotype

Diff of /contributions/modules/uc_paygate/uc_paygate.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Fri Sep 12 16:28:57 2008 UTC revision 1.2, Wed Sep 24 10:08:54 2008 UTC
# Line 1  Line 1 
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
# Line 268  function uc_paygate_complete($cart_id = Line 268  function uc_paygate_complete($cart_id =
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))));

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2