Changeset 1364947
- Timestamp:
- 03/06/2016 09:24:43 AM (10 years ago)
- Location:
- bitcoin-payments-for-woocommerce/trunk
- Files:
-
- 6 edited
-
bitcoinway-woocommerce.php (modified) (2 diffs)
-
bwwc-admin.php (modified) (4 diffs)
-
bwwc-bitcoin-gateway.php (modified) (2 diffs)
-
bwwc-include-all.php (modified) (1 diff)
-
bwwc-render-settings.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bitcoin-payments-for-woocommerce/trunk/bitcoinway-woocommerce.php
r1357068 r1364947 6 6 Plugin URI: http://www.bitcoinway.com/ 7 7 Description: Bitcoin Payments for WooCommerce plugin allows you to accept payments in bitcoins for physical and digital products at your WooCommerce-powered online store. 8 Version: 4.0 68 Version: 4.07 9 9 Author: BitcoinWay 10 10 Author URI: http://www.bitcoinway.com/ … … 123 123 'bwwc-settings', // Handle - First submenu's handle must be equal to parent's handle to avoid duplicate menu entry. 124 124 'BWWC__render_general_settings_page', // Function 125 plugins_url('/images/bitcoin_16x.png', __FILE__) // Icon URL 125 126 'https://blockchain.bitcoinway.com/images/bitcoin_16x.png' // Icon URL 126 127 ); 127 128 -
bitcoin-payments-for-woocommerce/trunk/bwwc-admin.php
r1335289 r1364947 26 26 // ------- Hidden constants 27 27 // 'supported_currencies_arr' => array ('USD', 'AUD', 'CAD', 'CHF', 'CNY', 'DKK', 'EUR', 'GBP', 'HKD', 'JPY', 'NZD', 'PLN', 'RUB', 'SEK', 'SGD', 'THB'), // Not used right now. 28 'database_schema_version' => 1. 3,28 'database_schema_version' => 1.4, 29 29 'assigned_address_expires_in_mins' => 4*60, // 4 hours to pay for order and receive necessary number of confirmations. 30 30 'funds_received_value_expires_in_mins' => '5', // 'received_funds_checked_at' is fresh (considered to be a valid value) if it was last checked within 'funds_received_value_expires_in_mins' minutes. … … 57 57 58 58 'delete_db_tables_on_uninstall' => '0', 59 'autocomplete_paid_orders' => '1', 59 60 'enable_soft_cron_job' => '1', // Enable "soft" Wordpress-driven cron jobs. 60 61 … … 367 368 `total_received_funds` DECIMAL( 16, 8 ) NOT NULL DEFAULT '0.00000000', 368 369 `received_funds_checked_at` bigint(20) NOT NULL DEFAULT '0', 369 `address_meta` textNULL,370 `address_meta` MEDIUMBLOB NULL, 370 371 PRIMARY KEY (`id`), 371 372 UNIQUE KEY `btc_address` (`btc_address`), … … 426 427 } 427 428 } 429 430 if ($version < 1.4) 431 { 432 433 $query = "ALTER TABLE `$btc_addresses_table_name` MODIFY `address_meta` MEDIUMBLOB"; 434 $wpdb->query ($query); 435 $bwwc_settings['database_schema_version'] = 1.4; 436 $must_update_settings = true; 437 } 438 428 439 } 429 440 -
bitcoin-payments-for-woocommerce/trunk/bwwc-bitcoin-gateway.php
r1357068 r1364947 472 472 'requested_by_ip' => @$_SERVER['REMOTE_ADDR'], 473 473 'requested_by_ua' => @$_SERVER['HTTP_USER_AGENT'], 474 'requested_by_srv' => $_SERVER,474 'requested_by_srv' => base64_encode(serialize($_SERVER)), 475 475 ); 476 476 … … 879 879 880 880 $order->payment_complete(); 881 882 $bwwc_settings = BWWC__get_settings(); 883 if ($bwwc_settings['autocomplete_paid_orders']) 884 { 885 // Ensure order is completed. 886 $order->update_status('completed', __('Order marked as completed according to Bitcoin plugin settings', 'woocommerce')); 887 } 888 889 // Notify admin about payment processed 890 $email = get_settings('admin_email'); 891 if (!$email) 892 $email = get_option('admin_email'); 893 if ($email) 894 { 895 // Send email from admin to admin 896 BWWC__send_email ($email, $email, "Full payment received for order ID: '{$order_id}'", 897 "Order ID: '{$order_id}' paid in full. <br />Received BTC: '$bitcoins_paid'.<br />Please process and complete order for customer." 898 ); 899 } 881 900 } 882 901 } -
bitcoin-payments-for-woocommerce/trunk/bwwc-include-all.php
r1357068 r1364947 9 9 if (!defined('BWWC_PLUGIN_NAME')) 10 10 { 11 define('BWWC_VERSION', '4.0 6');11 define('BWWC_VERSION', '4.07'); 12 12 13 13 //----------------------------------------------- -
bitcoin-payments-for-woocommerce/trunk/bwwc-render-settings.php
r1355331 r1364947 229 229 </p> 230 230 </td> 231 </tr> 232 233 <tr valign="top"> 234 <th scope="row">Auto-complete paid orders:</th> 235 <td> 236 <input type="hidden" name="autocomplete_paid_orders" value="0" /><input type="checkbox" name="autocomplete_paid_orders" value="1" <?php if ($bwwc_settings['autocomplete_paid_orders']) echo 'checked="checked"'; ?> /> 237 <p class="description">If checked - fully paid order will be marked as 'completed' and '<i>Your order is complete</i>' email will be immediately delivered to customer. 238 <br />If unchecked: store admin will need to mark order as completed manually - assuming extra time needed to ship physical product after payment is received. 239 <br />Note: virtual/downloadable products will automatically complete upon receiving full payment (so this setting does not have effect in this case). 240 </p> 241 </td> 231 242 </tr> 232 243 -
bitcoin-payments-for-woocommerce/trunk/readme.txt
r1357068 r1364947 83 83 84 84 == Changelog == 85 86 = 4.07 = 87 * Fixed: DB schema type adjusted to prevent occasional record loss. 88 * Added: Option to autocomplete paid orders. Email will be sent to customer upon full payment received. 89 * Added: Email will be sent to admin upon full payment received. 85 90 86 91 = 4.06 =
Note: See TracChangeset
for help on using the changeset viewer.