Changeset 3280955
- Timestamp:
- 04/24/2025 12:41:39 PM (10 months ago)
- Location:
- woocommerce-securesubmit-gateway/trunk
- Files:
-
- 6 edited
-
README.md (modified) (1 diff)
-
classes/class-wc-gateway-securesubmit.php (modified) (2 diffs)
-
classes/wc-gateway-securesubmit/class-payment.php (modified) (5 diffs)
-
etc/securesubmit-options.php (modified) (1 diff)
-
gateway-securesubmit.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-securesubmit-gateway/trunk/README.md
r3270040 r3280955 21 21 ## Changelog 22 22 23 #### 3.0.0 24 25 * Added support for automatic order status update on initial order creation 26 * Require PHP Group supported PHP version (>= v8.1); https://www.php.net/supported-versions 27 23 28 #### 2.3.5 24 29 -
woocommerce-securesubmit-gateway/trunk/classes/class-wc-gateway-securesubmit.php
r3270040 r3280955 11 11 public $refund = null; 12 12 public $reverse = null; 13 private $pluginVersion = ' 2.3.5';13 private $pluginVersion = '3.0.0'; 14 14 public $secret_key; 15 15 public $public_key; 16 16 public $custom_error; 17 17 public $paymentaction; 18 /** 19 * 20 * @var null|string 21 */ 22 public ?string $default_order_status; 18 23 public $txndescriptor; 19 24 public $enable_anti_fraud; … … 53 58 $this->custom_error = $this->getSetting('custom_error'); 54 59 $this->paymentaction = $this->getSetting('paymentaction'); 60 $this->default_order_status = $this->getSetting('default_order_status'); 55 61 $this->txndescriptor = $this->getSetting('txndescriptor'); 56 62 $this->enable_anti_fraud = ($this->getSetting('enable_anti_fraud') == 'yes' ? true : false); -
woocommerce-securesubmit-gateway/trunk/classes/wc-gateway-securesubmit/class-payment.php
r3075804 r3280955 42 42 if (empty($securesubmit_token)) { 43 43 if (isset($_POST['secure_submit_card']) && $_POST['secure_submit_card'] === 'new') { 44 throw new Exception(__( 45 'Please make sure your card details have been entered correctly ' 46 . 'and that your browser supports JavaScript.', 44 throw new Exception( 45 /* translators: card detail error message */ 46 esc_html_e( 47 'Please make sure your card details have been entered correctly 48 and that your browser supports JavaScript.', 47 49 'wc_securesubmit' 48 50 )); … … 259 261 } 260 262 261 $order->add_order_note( __(262 'SecureSubmit payment ' . $verb,263 'wc_securesubmit'264 ) . ' (Transaction ID: ' . $response->transactionId . ')');263 $order->add_order_note(sprintf( 264 /* translators: %s: paymentaction */ 265 esc_html_e( 'SecureSubmit payment %s','wc_securesubmit' ), 266 $verb) . ' (Transaction ID: ' . $response->transactionId . ')'); 265 267 do_action('wc_securesubmit_order_credit_card_details', $orderId, $card_type, $last_four); 266 268 if ($this->parent->paymentaction !== 'verify') { 267 269 $order->payment_complete($response->transactionId); 270 271 if ($this->parent->default_order_status !== 'default') { 272 $order->update_status($this->parent->default_order_status); 273 } 268 274 } 269 275 WC()->cart->empty_cart(); … … 275 281 } catch (HpsException $e) { 276 282 try { 277 $order->add_order_note(__( 278 'SecureSubmit payment failed. Gateway response message: "' . 279 $e->getMessage() . '"', 280 'wc_securesubmit' 281 )); 283 $order->add_order_note( 284 sprintf( 285 /* translators: %s: Gateway error response */ 286 esc_html_e('SecureSubmit payment failed. Gateway response message: %s','wc_securesubmit' ), 287 $e->getMessage()) 288 ); 282 289 } catch (Exception $f) { 283 290 // eat it … … 351 358 ) { 352 359 sleep(5); 353 throw new HpsException(sprintf( $this->parent->fraud_text, $issuerResponse));360 throw new HpsException(sprintf(esc_html($this->parent->fraud_text), esc_html($issuerResponse))); 354 361 } 355 362 } … … 388 395 private function getVelocityVarPrefix() 389 396 { 390 return sprintf('HeartlandHPS_Velocity%s', md5( $this->getRemoteIP()));397 return sprintf('HeartlandHPS_Velocity%s', md5(WC_Geolocation::get_ip_address())); 391 398 } 392 399 -
woocommerce-securesubmit-gateway/trunk/etc/securesubmit-options.php
r3236060 r3280955 113 113 ), 114 114 ), 115 'default_order_status' => array( 116 'title' => __('Order Status', 'wc_securesubmit'), 117 'type' => 'select', 118 'description' => __('Allows you to essentially override WooCommerce’s default order status handling by automatically updating to a status of your choosing on successful orders.', 'wc_securesubmit'), 119 'default' => 'default', 120 'desc_tip' => true, 121 'options' => array( 122 'default' => __('Default', 'wc_securesubmit'), 123 'processing' => __('Procesing', 'wc_securesubmit'), 124 'on-hold' => __('On Hold', 'wc_securesubmit'), 125 ), 126 ), 115 127 'txndescriptor' => array( 116 128 'title' => __('Order Transaction Descriptor', 'wc_securesubmit'), -
woocommerce-securesubmit-gateway/trunk/gateway-securesubmit.php
r3270040 r3280955 4 4 Plugin URI: https://developer.heartlandpaymentsystems.com/SecureSubmit/ 5 5 Description: Heartland Payment Systems gateway for WooCommerce. 6 Version: 2.3.57 WC tested up to: 9. 6.06 Version: 3.0.0 7 WC tested up to: 9.8.1 8 8 Author: SecureSubmit 9 9 Author URI: https://developer.heartlandpaymentsystems.com/SecureSubmit/ … … 85 85 public function activate() 86 86 { 87 if ( version_compare( PHP_VERSION, '8.1', '<' ) ) { 88 return; 89 } 90 87 91 if (!class_exists('WC_Payment_Gateway')) { 88 92 return; -
woocommerce-securesubmit-gateway/trunk/readme.txt
r3270040 r3280955 2 2 Contributors: markhagan 3 3 Tags: woocommerce, woo, heartland, payment, tokenize 4 Tested up to: 6. 7.14 Tested up to: 6.8 5 5 Stable tag: trunk 6 6 License: GPLv2 … … 38 38 39 39 == Changelog == 40 = 3.0.0 = 41 42 * Added support for automatic order status update on initial order creation 43 * Require PHP Group supported PHP version (>= v8.1); https://www.php.net/supported-versions 44 40 45 = 2.3.5 = 41 46 * Bugfix: correction to header formation
Note: See TracChangeset
for help on using the changeset viewer.