Changeset 1098079
- Timestamp:
- 02/24/2015 12:05:13 PM (11 years ago)
- Location:
- woocommerce-total-web-solutions-gateway
- Files:
-
- 4 edited
- 3 copied
-
tags/1.1.2 (copied) (copied from woocommerce-total-web-solutions-gateway/trunk)
-
tags/1.1.2/gateway-totalweb.php (modified) (9 diffs)
-
tags/1.1.2/index.php (copied) (copied from woocommerce-total-web-solutions-gateway/trunk/index.php) (1 diff)
-
tags/1.1.2/readme.txt (copied) (copied from woocommerce-total-web-solutions-gateway/trunk/readme.txt) (1 diff)
-
trunk/gateway-totalweb.php (modified) (9 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-total-web-solutions-gateway/tags/1.1.2/gateway-totalweb.php
r1098004 r1098079 44 44 45 45 // Logs cause issues in 2.3 46 //if ($this->debug=='yes') $this->log = $woocommerce->logger();46 if ($this->debug=='yes_tws') $this->log = $woocommerce->logger(); 47 47 48 48 // Hooks … … 187 187 global $woocommerce; 188 188 189 if ($this->debug=='yes ')189 if ($this->debug=='yes_tws') 190 190 $this->log->add( 'totalweb', 'Generating payment form for order #' . $order->id); 191 191 … … 223 223 "x_invoice_num" => $order->id, 224 224 "x_fp_sequence" => $order->order_key, 225 "x_amount" => $order->get_ order_total(),225 "x_amount" => $order->get_total(), 226 226 "x_currency_code" => 'GBP', 227 227 ); … … 322 322 $params['x_fp_hash'] = $fp_hash; 323 323 324 if ($this->debug=='yes ')324 if ($this->debug=='yes_tws') 325 325 $this->log->add( 'totalweb', "Params: " . print_r($params,true)); 326 326 … … 407 407 $this->notify_url = get_permalink(woocommerce_get_page_id('cart')); 408 408 409 if ($this->debug=='yes ') {409 if ($this->debug=='yes_tws') { 410 410 $this->log->add( 'totalweb', "Relay response:" . print_r($_POST,true)); 411 411 $this->log->add( 'totalweb', "Login ID:" . $this->login_id . "; md5: " . $this->md5_hash); … … 422 422 $order->add_order_note( __('Total Web Solutions payment completed', 'woocommerce') . ' (Transaction ID: ' . $response->transaction_id . ')' ); 423 423 424 if ($this->debug=='yes ')424 if ($this->debug=='yes_tws') 425 425 $this->log->add( 'totalweb', 'Total Web Solutions payment completed (Transaction ID: ' . $response->transaction_id . ')'); 426 426 … … 430 430 $redirect = add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink(woocommerce_get_page_id('thanks')))); 431 431 } else { 432 if ($this->debug=='yes ')432 if ($this->debug=='yes_tws') 433 433 $this->log->add( 'totalweb', 'Empty Order ID'); 434 434 … … 438 438 } else { 439 439 440 if ($this->debug=='yes ')440 if ($this->debug=='yes_tws') 441 441 $this->log->add( 'totalweb', sprintf("Error %s: %s", $response->response_reason_code, $response->response_reason_text)); 442 442 … … 449 449 450 450 } else { 451 if ($this->debug=='yes ')451 if ($this->debug=='yes_tws') 452 452 $this->log->add( 'totalweb', "MD5 Hash failed. Check to make sure your MD5 Setting matches the one in admin option"); 453 453 -
woocommerce-total-web-solutions-gateway/tags/1.1.2/index.php
r1098035 r1098079 4 4 Plugin URI: http://payments.totalwebsolutions.com 5 5 Description: Intergrates to the Total Web Solutions Pay Page 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: <[email protected]> 8 8 Author URI: http://www.totalwebsolutions.com -
woocommerce-total-web-solutions-gateway/tags/1.1.2/readme.txt
r1098035 r1098079 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
woocommerce-total-web-solutions-gateway/trunk/gateway-totalweb.php
r1098004 r1098079 44 44 45 45 // Logs cause issues in 2.3 46 //if ($this->debug=='yes') $this->log = $woocommerce->logger();46 if ($this->debug=='yes_tws') $this->log = $woocommerce->logger(); 47 47 48 48 // Hooks … … 187 187 global $woocommerce; 188 188 189 if ($this->debug=='yes ')189 if ($this->debug=='yes_tws') 190 190 $this->log->add( 'totalweb', 'Generating payment form for order #' . $order->id); 191 191 … … 223 223 "x_invoice_num" => $order->id, 224 224 "x_fp_sequence" => $order->order_key, 225 "x_amount" => $order->get_ order_total(),225 "x_amount" => $order->get_total(), 226 226 "x_currency_code" => 'GBP', 227 227 ); … … 322 322 $params['x_fp_hash'] = $fp_hash; 323 323 324 if ($this->debug=='yes ')324 if ($this->debug=='yes_tws') 325 325 $this->log->add( 'totalweb', "Params: " . print_r($params,true)); 326 326 … … 407 407 $this->notify_url = get_permalink(woocommerce_get_page_id('cart')); 408 408 409 if ($this->debug=='yes ') {409 if ($this->debug=='yes_tws') { 410 410 $this->log->add( 'totalweb', "Relay response:" . print_r($_POST,true)); 411 411 $this->log->add( 'totalweb', "Login ID:" . $this->login_id . "; md5: " . $this->md5_hash); … … 422 422 $order->add_order_note( __('Total Web Solutions payment completed', 'woocommerce') . ' (Transaction ID: ' . $response->transaction_id . ')' ); 423 423 424 if ($this->debug=='yes ')424 if ($this->debug=='yes_tws') 425 425 $this->log->add( 'totalweb', 'Total Web Solutions payment completed (Transaction ID: ' . $response->transaction_id . ')'); 426 426 … … 430 430 $redirect = add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink(woocommerce_get_page_id('thanks')))); 431 431 } else { 432 if ($this->debug=='yes ')432 if ($this->debug=='yes_tws') 433 433 $this->log->add( 'totalweb', 'Empty Order ID'); 434 434 … … 438 438 } else { 439 439 440 if ($this->debug=='yes ')440 if ($this->debug=='yes_tws') 441 441 $this->log->add( 'totalweb', sprintf("Error %s: %s", $response->response_reason_code, $response->response_reason_text)); 442 442 … … 449 449 450 450 } else { 451 if ($this->debug=='yes ')451 if ($this->debug=='yes_tws') 452 452 $this->log->add( 'totalweb', "MD5 Hash failed. Check to make sure your MD5 Setting matches the one in admin option"); 453 453 -
woocommerce-total-web-solutions-gateway/trunk/index.php
r1098035 r1098079 4 4 Plugin URI: http://payments.totalwebsolutions.com 5 5 Description: Intergrates to the Total Web Solutions Pay Page 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: <[email protected]> 8 8 Author URI: http://www.totalwebsolutions.com -
woocommerce-total-web-solutions-gateway/trunk/readme.txt
r1098035 r1098079 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.