Changeset 2905747
- Timestamp:
- 04/28/2023 02:43:50 PM (3 years ago)
- Location:
- cryptapi-payment-gateway-for-woocommerce
- Files:
-
- 6 edited
- 8 copied
-
tags/4.7.7 (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk)
-
tags/4.7.7/CryptAPI.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php) (1 diff)
-
tags/4.7.7/README.md (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/README.md) (3 diffs)
-
tags/4.7.7/controllers/CryptAPI.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php) (3 diffs)
-
tags/4.7.7/define.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/define.php) (1 diff)
-
tags/4.7.7/readme.txt (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt) (5 diffs)
-
tags/4.7.7/static/payment.js (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/static/payment.js)
-
tags/4.7.7/utils/helper.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/utils/helper.php) (2 diffs)
-
trunk/CryptAPI.php (modified) (1 diff)
-
trunk/README.md (modified) (3 diffs)
-
trunk/controllers/CryptAPI.php (modified) (3 diffs)
-
trunk/define.php (modified) (1 diff)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/utils/helper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cryptapi-payment-gateway-for-woocommerce/tags/4.7.7/CryptAPI.php
r2879320 r2905747 4 4 Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi 5 5 Description: Accept cryptocurrency payments on your WooCommerce website 6 Version: 4.7. 66 Version: 4.7.7 7 7 Requires at least: 5 8 Tested up to: 6. 1.18 Tested up to: 6.2 9 9 WC requires at least: 5.8 10 WC tested up to: 7. 4.110 WC tested up to: 7.6.1 11 11 Requires PHP: 7.2 12 12 Author: cryptapi -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.7/README.md
r2879320 r2905747 21 21 The CryptAPI plugin extends WooCommerce, allowing you to get paid in crypto directly on your store, with a simple setup and no sign-ups required. 22 22 23 #### Accepted cryptocurrencies & tokens include:23 #### Accepted cryptocurrencies & tokens include: 24 24 25 25 * (BTC) Bitcoin … … 44 44 * (EUR) Euro 45 45 * (GBP) Great Britain Pound 46 * (CAD) Canadian Dollar 46 47 * (JPY) Japanese Yen 48 * (AED) UAE Dollar 49 * (MYR) Malaysian Ringgit 50 * (IDR) Indonesian Rupiah 51 * (THB) Thai Baht 52 * (CHF) Swiss Franc 53 * (COP) Colombian Peso 54 * (SGD) Singapore Dollar 55 * (RUB) Russian Ruble 56 * (ZAR) South African Rand 57 * (TRY) Turkish Lira 58 * (LKR) Sri Lankan Rupee 59 * (XAF) CFA Franc 60 * (RON) Romanian Leu 61 * (BGN) Bulgarian Lev 62 * (HUF) Hungarian Forint 63 * (CZK) Czech Koruna 64 * (PHP) Philippine Peso 65 * (PLN) Poland Zloti 66 * (UGX) Uganda Shillings 67 * (MXN) Mexican Peso 68 * (INR) Indian Rupee 69 * (HKD) Hong Kong Dollar 47 70 * (CNY) Chinese Yuan 48 * (INR) Indian Rupee49 * (CAD) Canadian Dollar50 * (HKD) Hong Kong Dollar51 71 * (BRL) Brazilian Real 52 72 * (DKK) Danish Krone 53 * (MXN) Mexican Peso54 * (AED) United Arab Emirates Dirham55 73 56 74 If your WooCommerce's currency is none of the above, the exchange rates will default to USD. … … 326 344 * Minor fixes 327 345 346 #### 4.7.7 347 * Minor fixes 348 328 349 ### Upgrade Notice 329 350 #### 4.3 -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.7/controllers/CryptAPI.php
r2879320 r2905747 3 3 use Cryptapi\Helper; 4 4 5 #[AllowDynamicProperties] 5 6 class WC_CryptAPI_Gateway extends WC_Payment_Gateway 6 7 { … … 365 366 'type' => 'text', 366 367 'default' => '', 367 'description' => sprintf(esc_attr(__(' Insert here your BlockBee API Key. You can get one here: %1$s', 'cryptapi')), '<a href="https://dash.blockbee.io/" target="_blank">https://dash.blockbee.io/</a>')368 'description' => sprintf(esc_attr(__('(Optional) Insert here your BlockBee API Key. You can get one here: %1$s', 'cryptapi')), '<a href="https://dash.blockbee.io/" target="_blank">https://dash.blockbee.io/</a>') 368 369 ), 369 370 ); … … 741 742 'timestamp' => time(), 742 743 'value_paid' => CryptAPI\Helper::sig_fig($paid, 6), 743 'value_paid_fiat' => $conversion[ get_woocommerce_currency()],744 'value_paid_fiat' => $conversion[strtoupper($order->get_currency())], 744 745 'pending' => $data['pending'] 745 746 ]; -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.7/define.php
r2879320 r2905747 1 1 <?php 2 2 3 define('CRYPTAPI_PLUGIN_VERSION', '4.7. 6');3 define('CRYPTAPI_PLUGIN_VERSION', '4.7.7'); 4 4 define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__)); 5 5 define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.7/readme.txt
r2879320 r2905747 3 3 Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero, litecoin, bitcoin cash, shib, doge 4 4 Requires at least: 5 5 Tested up to: 6. 1.16 Stable tag: 4.7. 65 Tested up to: 6.2 6 Stable tag: 4.7.7 7 7 Requires PHP: 7.2 8 8 WC requires at least: 5.8 9 WC tested up to: 7. 4.19 WC tested up to: 7.6.1 10 10 License: MIT 11 11 … … 35 35 * (MATIC) Matic 36 36 37 38 37 among many others, for a full list of the supported cryptocurrencies and tokens, check [this page](https://cryptapi.io/pricing/). 39 38 … … 46 45 Supported currencies for automatic exchange rates are: 47 46 47 * (USD) United States Dollar 48 * (EUR) Euro 49 * (GBP) Great Britain Pound 50 * (CAD) Canadian Dollar 51 * (JPY) Japanese Yen 52 * (AED) UAE Dollar 53 * (MYR) Malaysian Ringgit 54 * (IDR) Indonesian Rupiah 55 * (THB) Thai Baht 56 * (CHF) Swiss Franc 57 * (COP) Colombian Peso 58 * (SGD) Singapore Dollar 59 * (RUB) Russian Ruble 60 * (ZAR) South African Rand 61 * (TRY) Turkish Lira 62 * (LKR) Sri Lankan Rupee 48 63 * (XAF) CFA Franc 49 64 * (RON) Romanian Leu … … 60 75 * (BRL) Brazilian Real 61 76 * (DKK) Danish Krone 62 * (AED) UAE Dirham63 * (JPY) Japanese Yen64 * (CAD) Canadian Dollar65 * (GBP) GB Pound66 * (EUR) Euro67 * (USD) US Dollar68 77 69 78 If your WooCommerce's currency is none of the above, the exchange rates will default to USD. … … 331 340 * Minor fixes 332 341 342 = 4.7.6 = 343 * Performance improvements 344 * Minor fixes 345 346 = 4.7.7 = 347 * Minor fixes 348 333 349 == Upgrade Notice == 334 350 -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.7/utils/helper.php
r2879320 r2905747 253 253 public static function sig_fig($value, $digits) 254 254 { 255 if (strpos((string) $value, '.') !== false) { 255 $value = (string) $value; 256 if (strpos($value, '.') !== false) { 256 257 if ($value[0] != '-') { 257 258 return bcadd($value, '0.' . str_repeat('0', $digits) . '5', $digits); … … 290 291 $response = json_decode(wp_remote_retrieve_body(wp_remote_get($url)), $assoc); 291 292 292 if ($response && $response->status == 'success' || !empty($response['btc'])) { 293 if ($assoc && !empty($response['btc'])) { 294 return $response; 295 } 296 297 if ($response && $response->status === 'success') { 293 298 return $response; 294 299 } -
cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php
r2879320 r2905747 4 4 Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi 5 5 Description: Accept cryptocurrency payments on your WooCommerce website 6 Version: 4.7. 66 Version: 4.7.7 7 7 Requires at least: 5 8 Tested up to: 6. 1.18 Tested up to: 6.2 9 9 WC requires at least: 5.8 10 WC tested up to: 7. 4.110 WC tested up to: 7.6.1 11 11 Requires PHP: 7.2 12 12 Author: cryptapi -
cryptapi-payment-gateway-for-woocommerce/trunk/README.md
r2879320 r2905747 21 21 The CryptAPI plugin extends WooCommerce, allowing you to get paid in crypto directly on your store, with a simple setup and no sign-ups required. 22 22 23 #### Accepted cryptocurrencies & tokens include:23 #### Accepted cryptocurrencies & tokens include: 24 24 25 25 * (BTC) Bitcoin … … 44 44 * (EUR) Euro 45 45 * (GBP) Great Britain Pound 46 * (CAD) Canadian Dollar 46 47 * (JPY) Japanese Yen 48 * (AED) UAE Dollar 49 * (MYR) Malaysian Ringgit 50 * (IDR) Indonesian Rupiah 51 * (THB) Thai Baht 52 * (CHF) Swiss Franc 53 * (COP) Colombian Peso 54 * (SGD) Singapore Dollar 55 * (RUB) Russian Ruble 56 * (ZAR) South African Rand 57 * (TRY) Turkish Lira 58 * (LKR) Sri Lankan Rupee 59 * (XAF) CFA Franc 60 * (RON) Romanian Leu 61 * (BGN) Bulgarian Lev 62 * (HUF) Hungarian Forint 63 * (CZK) Czech Koruna 64 * (PHP) Philippine Peso 65 * (PLN) Poland Zloti 66 * (UGX) Uganda Shillings 67 * (MXN) Mexican Peso 68 * (INR) Indian Rupee 69 * (HKD) Hong Kong Dollar 47 70 * (CNY) Chinese Yuan 48 * (INR) Indian Rupee49 * (CAD) Canadian Dollar50 * (HKD) Hong Kong Dollar51 71 * (BRL) Brazilian Real 52 72 * (DKK) Danish Krone 53 * (MXN) Mexican Peso54 * (AED) United Arab Emirates Dirham55 73 56 74 If your WooCommerce's currency is none of the above, the exchange rates will default to USD. … … 326 344 * Minor fixes 327 345 346 #### 4.7.7 347 * Minor fixes 348 328 349 ### Upgrade Notice 329 350 #### 4.3 -
cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php
r2879320 r2905747 3 3 use Cryptapi\Helper; 4 4 5 #[AllowDynamicProperties] 5 6 class WC_CryptAPI_Gateway extends WC_Payment_Gateway 6 7 { … … 365 366 'type' => 'text', 366 367 'default' => '', 367 'description' => sprintf(esc_attr(__(' Insert here your BlockBee API Key. You can get one here: %1$s', 'cryptapi')), '<a href="https://dash.blockbee.io/" target="_blank">https://dash.blockbee.io/</a>')368 'description' => sprintf(esc_attr(__('(Optional) Insert here your BlockBee API Key. You can get one here: %1$s', 'cryptapi')), '<a href="https://dash.blockbee.io/" target="_blank">https://dash.blockbee.io/</a>') 368 369 ), 369 370 ); … … 741 742 'timestamp' => time(), 742 743 'value_paid' => CryptAPI\Helper::sig_fig($paid, 6), 743 'value_paid_fiat' => $conversion[ get_woocommerce_currency()],744 'value_paid_fiat' => $conversion[strtoupper($order->get_currency())], 744 745 'pending' => $data['pending'] 745 746 ]; -
cryptapi-payment-gateway-for-woocommerce/trunk/define.php
r2879320 r2905747 1 1 <?php 2 2 3 define('CRYPTAPI_PLUGIN_VERSION', '4.7. 6');3 define('CRYPTAPI_PLUGIN_VERSION', '4.7.7'); 4 4 define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__)); 5 5 define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt
r2879320 r2905747 3 3 Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero, litecoin, bitcoin cash, shib, doge 4 4 Requires at least: 5 5 Tested up to: 6. 1.16 Stable tag: 4.7. 65 Tested up to: 6.2 6 Stable tag: 4.7.7 7 7 Requires PHP: 7.2 8 8 WC requires at least: 5.8 9 WC tested up to: 7. 4.19 WC tested up to: 7.6.1 10 10 License: MIT 11 11 … … 35 35 * (MATIC) Matic 36 36 37 38 37 among many others, for a full list of the supported cryptocurrencies and tokens, check [this page](https://cryptapi.io/pricing/). 39 38 … … 46 45 Supported currencies for automatic exchange rates are: 47 46 47 * (USD) United States Dollar 48 * (EUR) Euro 49 * (GBP) Great Britain Pound 50 * (CAD) Canadian Dollar 51 * (JPY) Japanese Yen 52 * (AED) UAE Dollar 53 * (MYR) Malaysian Ringgit 54 * (IDR) Indonesian Rupiah 55 * (THB) Thai Baht 56 * (CHF) Swiss Franc 57 * (COP) Colombian Peso 58 * (SGD) Singapore Dollar 59 * (RUB) Russian Ruble 60 * (ZAR) South African Rand 61 * (TRY) Turkish Lira 62 * (LKR) Sri Lankan Rupee 48 63 * (XAF) CFA Franc 49 64 * (RON) Romanian Leu … … 60 75 * (BRL) Brazilian Real 61 76 * (DKK) Danish Krone 62 * (AED) UAE Dirham63 * (JPY) Japanese Yen64 * (CAD) Canadian Dollar65 * (GBP) GB Pound66 * (EUR) Euro67 * (USD) US Dollar68 77 69 78 If your WooCommerce's currency is none of the above, the exchange rates will default to USD. … … 331 340 * Minor fixes 332 341 342 = 4.7.6 = 343 * Performance improvements 344 * Minor fixes 345 346 = 4.7.7 = 347 * Minor fixes 348 333 349 == Upgrade Notice == 334 350 -
cryptapi-payment-gateway-for-woocommerce/trunk/utils/helper.php
r2879320 r2905747 253 253 public static function sig_fig($value, $digits) 254 254 { 255 if (strpos((string) $value, '.') !== false) { 255 $value = (string) $value; 256 if (strpos($value, '.') !== false) { 256 257 if ($value[0] != '-') { 257 258 return bcadd($value, '0.' . str_repeat('0', $digits) . '5', $digits); … … 290 291 $response = json_decode(wp_remote_retrieve_body(wp_remote_get($url)), $assoc); 291 292 292 if ($response && $response->status == 'success' || !empty($response['btc'])) { 293 if ($assoc && !empty($response['btc'])) { 294 return $response; 295 } 296 297 if ($response && $response->status === 'success') { 293 298 return $response; 294 299 }
Note: See TracChangeset
for help on using the changeset viewer.