Plugin Directory

Changeset 1364947


Ignore:
Timestamp:
03/06/2016 09:24:43 AM (10 years ago)
Author:
gesman
Message:

version update

Location:
bitcoin-payments-for-woocommerce/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • bitcoin-payments-for-woocommerce/trunk/bitcoinway-woocommerce.php

    r1357068 r1364947  
    66Plugin URI: http://www.bitcoinway.com/
    77Description: 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.06
     8Version: 4.07
    99Author: BitcoinWay
    1010Author URI: http://www.bitcoinway.com/
     
    123123        'bwwc-settings',                                        // Handle - First submenu's handle must be equal to parent's handle to avoid duplicate menu entry.
    124124        '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
    126127        );
    127128
  • bitcoin-payments-for-woocommerce/trunk/bwwc-admin.php

    r1335289 r1364947  
    2626   // ------- Hidden constants
    2727// '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,
    2929   'assigned_address_expires_in_mins'     =>  4*60,   // 4 hours to pay for order and receive necessary number of confirmations.
    3030   '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.
     
    5757
    5858   'delete_db_tables_on_uninstall'        =>  '0',
     59   'autocomplete_paid_orders'                           =>  '1',
    5960   'enable_soft_cron_job'                 =>  '1',    // Enable "soft" Wordpress-driven cron jobs.
    6061
     
    367368    `total_received_funds` DECIMAL( 16, 8 ) NOT NULL DEFAULT '0.00000000',
    368369    `received_funds_checked_at` bigint(20) NOT NULL DEFAULT '0',
    369     `address_meta` text NULL,
     370    `address_meta` MEDIUMBLOB NULL,
    370371    PRIMARY KEY (`id`),
    371372    UNIQUE KEY `btc_address` (`btc_address`),
     
    426427      }
    427428    }
     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
    428439  }
    429440
  • bitcoin-payments-for-woocommerce/trunk/bwwc-bitcoin-gateway.php

    r1357068 r1364947  
    472472                'requested_by_ip'                   => @$_SERVER['REMOTE_ADDR'],
    473473                'requested_by_ua'                   => @$_SERVER['HTTP_USER_AGENT'],
    474                 'requested_by_srv'              => $_SERVER,
     474                'requested_by_srv'              => base64_encode(serialize($_SERVER)),
    475475                );
    476476
     
    879879
    880880      $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        }
    881900    }
    882901}
  • bitcoin-payments-for-woocommerce/trunk/bwwc-include-all.php

    r1357068 r1364947  
    99if (!defined('BWWC_PLUGIN_NAME'))
    1010  {
    11   define('BWWC_VERSION',           '4.06');
     11  define('BWWC_VERSION',           '4.07');
    1212
    1313  //-----------------------------------------------
  • bitcoin-payments-for-woocommerce/trunk/bwwc-render-settings.php

    r1355331 r1364947  
    229229              </p>
    230230            </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>
    231242        </tr>
    232243
  • bitcoin-payments-for-woocommerce/trunk/readme.txt

    r1357068 r1364947  
    8383
    8484== 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.
    8590
    8691= 4.06 =
Note: See TracChangeset for help on using the changeset viewer.