Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
the plugin should not restrain the available currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Nov 7, 2021
1 parent e55af1b commit 989e12d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 3.0.15

- Fix: the plugin should not restrain the available currencies @NicolasDorier

## 3.0.14

- Fix: the plugin would to work on some domains, due to a https error @ndeet
Expand Down
6 changes: 3 additions & 3 deletions src/class-wc-gateway-btcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Author: BTCPay
Author URI: https://github.com/btcpayserver
Version: 3.0.14
Version: 3.0.15
License: Copyright 2011-2018 BTCPay & BitPay Inc., MIT License
License URI: https://github.com/btcpayserver/woocommerce-plugin/blob/master/LICENSE
GitHub Plugin URI: https://github.com/btcpayserver/woocommerce-plugin
Expand All @@ -23,7 +23,7 @@
exit;
}

define("BTCPAY_VERSION", "3.0.14");
define("BTCPAY_VERSION", "3.0.15");
$autoloader_param = __DIR__ . '/lib/Bitpay/Autoloader.php';

// Load up the BitPay library
Expand Down Expand Up @@ -287,7 +287,7 @@ public function is_valid_for_use()

// Ensure the currency is supported by BitPay
try {
$currency = new \Bitpay\Currency(get_woocommerce_currency());
$currency = new \Bitpay\CurrencyUnrestricted(get_woocommerce_currency());

if (false === isset($currency) || true === empty($currency)) {
$this->log(' [Error] The BTCPay payment plugin was called to check if it was valid for use but could not instantiate a currency object.');
Expand Down
4 changes: 4 additions & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ You'll find extensive documentation and answers to many of your questions on [do

== Changelog ==

## 3.0.15

- Fix: the plugin should not restrain the available currencies @NicolasDorier

## 3.0.14

- Fix: the plugin would to work on some domains, due to a https error @ndeet
Expand Down

0 comments on commit 989e12d

Please sign in to comment.