Skip to content

Commit

Permalink
fixed bug with loading option and released 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vigan-abd committed Apr 25, 2023
1 parent 77d1ead commit 8194394
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bfx-pay-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Bitfinex Pay
* Plugin URI: https://github.com/bitfinexcom/bfx-pay-woocommerce/
* Description: Allows e-commerce customers to pay for goods and services with crypto currencies. It provides a payment gateway that could be used by any e-commerce to sell their products and services as long as they have an Intermediate-verified (or higher KYC level) Merchant account on the Bitfinex platform.
* Version: 2.0.1
* Version: 2.0.2
* Author: Bitfinex
* Author URI: https://www.bitfinex.com/
* License: GPL-3.0
Expand Down
4 changes: 2 additions & 2 deletions includes/class-wc-bfx-pay-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @class WC_Bfx_Pay_Gateway
* @extends WC_Payment_Gateway
*
* @version 2.0.1
* @version 2.0.2
*/
class WC_Bfx_Pay_Gateway extends WC_Payment_Gateway
{
Expand Down Expand Up @@ -69,6 +69,7 @@ public function __construct()
$this->checkReqButton = $this->get_option('button_req_checkout');
$this->payCurrencies = $this->get_option('pay_currencies');
$this->duration = $this->get_option('duration') ?? 86399;
$this->debug = ('yes' === $this->get_option('debug'));

// Checking which button theme selected and outputing relevated.
$this->icon = ('Light' === $this->buttonType) ? apply_filters('woocommerce_bfx_icon', plugins_url('../assets/img/bfx-pay-white.svg', __FILE__)) : apply_filters('woocommerce_bfx_icon', plugins_url('../assets/img/bfx-pay-dark.svg', __FILE__));
Expand Down Expand Up @@ -153,7 +154,6 @@ protected function setup_properties()
$this->method_title = __('Bitfinex Payment', 'bitfinex-pay');
$this->method_description = __('Bitfinex Payment', 'bitfinex-pay');
$this->has_fields = true;
$this->debug = ('yes' === $this->get_option('debug'));
}

/**
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: bitcoin payments, crypto payments, bitcoin, tether token, bitfinex pay, cr
Requires at least: 6.0
Tested up to: 6.1.1
Requires PHP: 7.4
Stable tag: 2.0.1
Stable tag: 2.0.2
License: GPLv3
License URI: https://github.com/bitfinexcom/bfx-pay-woocommerce/blob/main/LICENSE

Expand Down Expand Up @@ -85,6 +85,9 @@ Note: The maximum invoice amount is $ 1,000 (equivalent).


== Changelog ==
= 2.0.2 =
* Fixed issue with loading debug flag before initialising form fields

= 2.0.1 =
* Fixed support for php 7.4

Expand Down

0 comments on commit 8194394

Please sign in to comment.