|
5 | 5 | Description: Accept multiple cryptocurrencies and turn into local currency as EUR, CLP, BRL and ARS on your WooCommerce store.. |
6 | 6 | Author: CryptoMarket Dev Team |
7 | 7 | Text Domain: CryptoMarket |
8 | | -Author URI: https://www.cryptomkt.com |
| 8 | +Author URI: https://github.com/cryptomkt |
9 | 9 |
|
10 | | -Version: 0.1 |
| 10 | +Version: 0.1.1 |
11 | 11 | License: Copyright 2016-2018 Cryptomarket SPA., MIT License |
12 | 12 | License URI: https://github.com/cryptomkt/woocommerce-plugin/blob/master/LICENSE |
13 | 13 | GitHub Plugin URI: https://github.com/cryptomkt/woocommerce-plugin |
|
20 | 20 |
|
21 | 21 | //composer autoload |
22 | 22 | $loader = require __DIR__ . '/lib/autoload.php'; |
23 | | -$loader->add('Cryptomkt\\Exchange\\Client', __DIR__); |
24 | | -$loader->add('Cryptomkt\\Exchange\\Configuration as CMConfiguration', __DIR__); |
| 23 | +$loader->add('Cryptomkt\\Client', __DIR__); |
| 24 | +$loader->add('Cryptomkt\\Configuration', __DIR__); |
25 | 25 |
|
26 | 26 | // Ensures WooCommerce is loaded before initializing the cryptomarket plugin |
27 | 27 | add_action('plugins_loaded', 'woocommerce_cryptomarket_init', 0); |
@@ -104,11 +104,11 @@ public function is_valid_for_use() { |
104 | 104 | } |
105 | 105 |
|
106 | 106 | // Setup the cryptomarket client |
107 | | - $configuration = Cryptomkt\Exchange\Configuration::apiKey( |
| 107 | + $configuration = Cryptomkt\Configuration::apiKey( |
108 | 108 | $this->get_option('api_key'), |
109 | 109 | $this->get_option('api_secret') |
110 | 110 | ); |
111 | | - $this->client = Cryptomkt\Exchange\Client::create($configuration); |
| 111 | + $this->client = Cryptomkt\Client::create($configuration); |
112 | 112 |
|
113 | 113 | // Ensure the currency is supported by cryptomarket |
114 | 114 | $currency = get_woocommerce_currency(); |
|
0 commit comments