Changeset 2957840
- Timestamp:
- 08/24/2023 11:25:40 AM (2 years ago)
- Location:
- cryptapi-payment-gateway-for-woocommerce
- Files:
-
- 5 edited
- 8 copied
-
tags/4.7.9 (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk)
-
tags/4.7.9/CryptAPI.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php) (2 diffs)
-
tags/4.7.9/README.md (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/README.md) (3 diffs)
-
tags/4.7.9/controllers/CryptAPI.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php) (5 diffs)
-
tags/4.7.9/define.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/define.php) (1 diff)
-
tags/4.7.9/readme.txt (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt) (3 diffs)
-
tags/4.7.9/static/payment.js (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/static/payment.js)
-
tags/4.7.9/utils/helper.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/utils/helper.php)
-
trunk/CryptAPI.php (modified) (2 diffs)
-
trunk/README.md (modified) (3 diffs)
-
trunk/controllers/CryptAPI.php (modified) (5 diffs)
-
trunk/define.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cryptapi-payment-gateway-for-woocommerce/tags/4.7.9/CryptAPI.php
r2945994 r2957840 4 4 Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi 5 5 Description: Accept cryptocurrency payments on your WooCommerce website 6 Version: 4.7. 86 Version: 4.7.9 7 7 Requires at least: 5 8 8 Tested up to: 6.3 9 9 WC requires at least: 5.8 10 WC tested up to: 7.9.010 WC tested up to: 8.0.2 11 11 Requires PHP: 7.2 12 12 Author: cryptapi … … 132 132 wp_schedule_event(time(), 'cryptapi_interval', 'cryptapi_cronjob'); 133 133 } 134 135 add_action('before_woocommerce_init', function () { 136 if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) { 137 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true); 138 } 139 }); -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.9/README.md
r2945994 r2957840 14 14 ### Description 15 15 16 Accept payments in Bitcoin, Bitcoin Cash, Litecoin, Ethereum , Monero and IOTAdirectly to your crypto wallet, without any sign-ups or lengthy processes.16 Accept payments in Bitcoin, Bitcoin Cash, Litecoin, Ethereum and USDT directly to your crypto wallet, without any sign-ups or lengthy processes. 17 17 All you need is to provide your crypto address. 18 18 … … 27 27 * (BCH) Bitcoin Cash 28 28 * (LTC) Litecoin 29 * (XMR) Monero30 29 * (TRX) Tron 31 30 * (BNB) Binance Coin 32 31 * (USDT) USDT 32 * (SHIB) Shiba Inu 33 * (DOGE) Dogecoin 34 * (MATIC) Matic 33 35 34 36 among many others, for a full list of the supported cryptocurrencies and tokens, check [this page](https://cryptapi.io/pricing/). … … 350 352 * Minor fixes 351 353 354 #### 4.7.9 355 * Support for WooCommerce HPOS. 356 * Minor fixes 357 352 358 ### Upgrade Notice 353 359 #### 4.3 -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.9/controllers/CryptAPI.php
r2945994 r2957840 454 454 jQuery('#payment_cryptapi_coin').selectWoo({ 455 455 minimumResultsForSearch: -1, 456 templateResult: formatState ,457 }) ;456 templateResult: formatState 457 }) 458 458 459 459 function formatState(opt) { 460 460 if (!opt.id) { 461 return opt.text ;461 return opt.text 462 462 } 463 let optImage = jQuery(opt.element).attr('data-image') ;463 let optImage = jQuery(opt.element).attr('data-image') 464 464 if (!optImage) { 465 return opt.text ;465 return opt.text 466 466 } else { 467 return jQuery('<span style="display:flex; align-items:center;"><img style="margin-right: 8px" src="' + optImage + '" width="24px" alt="' + opt.text + '" /> ' + opt.text + '</span>') ;467 return jQuery('<span style="display:flex; align-items:center;"><img style="margin-right: 8px" src="' + optImage + '" width="24px" alt="' + opt.text + '" /> ' + opt.text + '</span>') 468 468 } 469 469 } … … 669 669 'order_history' => json_decode($order->get_meta('cryptapi_history'), true), 670 670 'counter' => (string)$counter_calc, 671 'crypto_total' => (float) $order->get_meta('cryptapi_total'),671 'crypto_total' => (float)$order->get_meta('cryptapi_total'), 672 672 'already_paid' => $already_paid, 673 'remaining' => (float) $remaining_pending <= 0 ? 0 : $remaining_pending,674 'fiat_remaining' => (float) $remaining_fiat <= 0 ? 0 : $remaining_fiat,675 'already_paid_fiat' => (float) $already_paid_fiat <= 0 ? 0 : $already_paid_fiat,673 'remaining' => (float)$remaining_pending <= 0 ? 0 : $remaining_pending, 674 'fiat_remaining' => (float)$remaining_fiat <= 0 ? 0 : $remaining_fiat, 675 'already_paid_fiat' => (float)$already_paid_fiat <= 0 ? 0 : $already_paid_fiat, 676 676 'fiat_symbol' => get_woocommerce_currency_symbol(), 677 677 ]; … … 769 769 $remaining_pending = $calc['remaining_pending']; 770 770 771 $order_notes = $this->get_private_order_notes($order ->get_id());771 $order_notes = $this->get_private_order_notes($order); 772 772 773 773 $has_pending = false; … … 1452 1452 } 1453 1453 1454 function get_private_order_notes($order_id) 1455 { 1456 global $wpdb; 1457 1458 $table_perfixed = $wpdb->prefix . 'comments'; 1459 $results = $wpdb->get_results(" 1460 SELECT * 1461 FROM $table_perfixed 1462 WHERE `comment_post_ID` = $order_id 1463 AND `comment_type` LIKE 'order_note' 1464 "); 1454 function get_private_order_notes($order) 1455 { 1456 $results = wc_get_order_notes([ 1457 'order_in' => $order->get_id(), 1458 'order__in' => $order->get_id() 1459 ]); 1465 1460 1466 1461 foreach ($results as $note) { 1467 $order_note[] = array( 1468 'note_id' => $note->comment_ID, 1469 'note_date' => $note->comment_date, 1470 'note_author' => $note->comment_author, 1471 'note_content' => $note->comment_content, 1472 ); 1462 if (!$note->customer_note) { 1463 $order_note[] = array( 1464 'note_id' => $note->id, 1465 'note_date' => $note->date_created, 1466 'note_content' => $note->content, 1467 ); 1468 } 1473 1469 } 1474 1470 … … 1505 1501 <script> 1506 1502 jQuery(function () { 1507 const validate_button = jQuery('#validate_callbacks') ;1503 const validate_button = jQuery('#validate_callbacks') 1508 1504 1509 1505 validate_button.on('click', function (e) { 1510 e.preventDefault() ;1511 validate_callbacks() ;1512 validate_button.html('<?php echo esc_attr(__('Checking', 'cryptapi'));?>') ;1506 e.preventDefault() 1507 validate_callbacks() 1508 validate_button.html('<?php echo esc_attr(__('Checking', 'cryptapi'));?>') 1513 1509 }) 1514 1510 1515 1511 function validate_callbacks() { 1516 1512 jQuery.getJSON('<?php echo $ajax_url?>').always(function () { 1517 window.location.reload() ;1513 window.location.reload() 1518 1514 }) 1519 1515 } -
cryptapi-payment-gateway-for-woocommerce/tags/4.7.9/define.php
r2945994 r2957840 1 1 <?php 2 2 3 define('CRYPTAPI_PLUGIN_VERSION', '4.7. 8');3 define('CRYPTAPI_PLUGIN_VERSION', '4.7.9'); 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.9/readme.txt
r2945994 r2957840 1 1 === CryptAPI Payment Gateway for WooCommerce === 2 2 Contributors: cryptapi 3 Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero,litecoin, bitcoin cash, shib, doge3 Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, litecoin, bitcoin cash, shib, doge 4 4 Requires at least: 5 5 5 Tested up to: 6.3 6 Stable tag: 4.7. 86 Stable tag: 4.7.9 7 7 Requires PHP: 7.2 8 8 WC requires at least: 5.8 9 WC tested up to: 7.9.09 WC tested up to: 8.0.2 10 10 License: MIT 11 11 … … 15 15 == Description == 16 16 17 Accept payments in Bitcoin, Ethereum, Bitcoin Cash, Litecoin, Monero,BNB, USDT, SHIB, DOGE and many more directly to your crypto wallet, without any sign-ups or lengthy processes.17 Accept payments in Bitcoin, Ethereum, Bitcoin Cash, Litecoin, BNB, USDT, SHIB, DOGE and many more directly to your crypto wallet, without any sign-ups or lengthy processes. 18 18 All you need is to provide your crypto address. 19 19 … … 350 350 * Minor fixes 351 351 352 = 4.7.9 = 353 * Support for WooCommerce HPOS. 354 * Minor fixes 355 352 356 == Upgrade Notice == 353 357 -
cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php
r2945994 r2957840 4 4 Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi 5 5 Description: Accept cryptocurrency payments on your WooCommerce website 6 Version: 4.7. 86 Version: 4.7.9 7 7 Requires at least: 5 8 8 Tested up to: 6.3 9 9 WC requires at least: 5.8 10 WC tested up to: 7.9.010 WC tested up to: 8.0.2 11 11 Requires PHP: 7.2 12 12 Author: cryptapi … … 132 132 wp_schedule_event(time(), 'cryptapi_interval', 'cryptapi_cronjob'); 133 133 } 134 135 add_action('before_woocommerce_init', function () { 136 if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) { 137 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true); 138 } 139 }); -
cryptapi-payment-gateway-for-woocommerce/trunk/README.md
r2945994 r2957840 14 14 ### Description 15 15 16 Accept payments in Bitcoin, Bitcoin Cash, Litecoin, Ethereum , Monero and IOTAdirectly to your crypto wallet, without any sign-ups or lengthy processes.16 Accept payments in Bitcoin, Bitcoin Cash, Litecoin, Ethereum and USDT directly to your crypto wallet, without any sign-ups or lengthy processes. 17 17 All you need is to provide your crypto address. 18 18 … … 27 27 * (BCH) Bitcoin Cash 28 28 * (LTC) Litecoin 29 * (XMR) Monero30 29 * (TRX) Tron 31 30 * (BNB) Binance Coin 32 31 * (USDT) USDT 32 * (SHIB) Shiba Inu 33 * (DOGE) Dogecoin 34 * (MATIC) Matic 33 35 34 36 among many others, for a full list of the supported cryptocurrencies and tokens, check [this page](https://cryptapi.io/pricing/). … … 350 352 * Minor fixes 351 353 354 #### 4.7.9 355 * Support for WooCommerce HPOS. 356 * Minor fixes 357 352 358 ### Upgrade Notice 353 359 #### 4.3 -
cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php
r2945994 r2957840 454 454 jQuery('#payment_cryptapi_coin').selectWoo({ 455 455 minimumResultsForSearch: -1, 456 templateResult: formatState ,457 }) ;456 templateResult: formatState 457 }) 458 458 459 459 function formatState(opt) { 460 460 if (!opt.id) { 461 return opt.text ;461 return opt.text 462 462 } 463 let optImage = jQuery(opt.element).attr('data-image') ;463 let optImage = jQuery(opt.element).attr('data-image') 464 464 if (!optImage) { 465 return opt.text ;465 return opt.text 466 466 } else { 467 return jQuery('<span style="display:flex; align-items:center;"><img style="margin-right: 8px" src="' + optImage + '" width="24px" alt="' + opt.text + '" /> ' + opt.text + '</span>') ;467 return jQuery('<span style="display:flex; align-items:center;"><img style="margin-right: 8px" src="' + optImage + '" width="24px" alt="' + opt.text + '" /> ' + opt.text + '</span>') 468 468 } 469 469 } … … 669 669 'order_history' => json_decode($order->get_meta('cryptapi_history'), true), 670 670 'counter' => (string)$counter_calc, 671 'crypto_total' => (float) $order->get_meta('cryptapi_total'),671 'crypto_total' => (float)$order->get_meta('cryptapi_total'), 672 672 'already_paid' => $already_paid, 673 'remaining' => (float) $remaining_pending <= 0 ? 0 : $remaining_pending,674 'fiat_remaining' => (float) $remaining_fiat <= 0 ? 0 : $remaining_fiat,675 'already_paid_fiat' => (float) $already_paid_fiat <= 0 ? 0 : $already_paid_fiat,673 'remaining' => (float)$remaining_pending <= 0 ? 0 : $remaining_pending, 674 'fiat_remaining' => (float)$remaining_fiat <= 0 ? 0 : $remaining_fiat, 675 'already_paid_fiat' => (float)$already_paid_fiat <= 0 ? 0 : $already_paid_fiat, 676 676 'fiat_symbol' => get_woocommerce_currency_symbol(), 677 677 ]; … … 769 769 $remaining_pending = $calc['remaining_pending']; 770 770 771 $order_notes = $this->get_private_order_notes($order ->get_id());771 $order_notes = $this->get_private_order_notes($order); 772 772 773 773 $has_pending = false; … … 1452 1452 } 1453 1453 1454 function get_private_order_notes($order_id) 1455 { 1456 global $wpdb; 1457 1458 $table_perfixed = $wpdb->prefix . 'comments'; 1459 $results = $wpdb->get_results(" 1460 SELECT * 1461 FROM $table_perfixed 1462 WHERE `comment_post_ID` = $order_id 1463 AND `comment_type` LIKE 'order_note' 1464 "); 1454 function get_private_order_notes($order) 1455 { 1456 $results = wc_get_order_notes([ 1457 'order_in' => $order->get_id(), 1458 'order__in' => $order->get_id() 1459 ]); 1465 1460 1466 1461 foreach ($results as $note) { 1467 $order_note[] = array( 1468 'note_id' => $note->comment_ID, 1469 'note_date' => $note->comment_date, 1470 'note_author' => $note->comment_author, 1471 'note_content' => $note->comment_content, 1472 ); 1462 if (!$note->customer_note) { 1463 $order_note[] = array( 1464 'note_id' => $note->id, 1465 'note_date' => $note->date_created, 1466 'note_content' => $note->content, 1467 ); 1468 } 1473 1469 } 1474 1470 … … 1505 1501 <script> 1506 1502 jQuery(function () { 1507 const validate_button = jQuery('#validate_callbacks') ;1503 const validate_button = jQuery('#validate_callbacks') 1508 1504 1509 1505 validate_button.on('click', function (e) { 1510 e.preventDefault() ;1511 validate_callbacks() ;1512 validate_button.html('<?php echo esc_attr(__('Checking', 'cryptapi'));?>') ;1506 e.preventDefault() 1507 validate_callbacks() 1508 validate_button.html('<?php echo esc_attr(__('Checking', 'cryptapi'));?>') 1513 1509 }) 1514 1510 1515 1511 function validate_callbacks() { 1516 1512 jQuery.getJSON('<?php echo $ajax_url?>').always(function () { 1517 window.location.reload() ;1513 window.location.reload() 1518 1514 }) 1519 1515 } -
cryptapi-payment-gateway-for-woocommerce/trunk/define.php
r2945994 r2957840 1 1 <?php 2 2 3 define('CRYPTAPI_PLUGIN_VERSION', '4.7. 8');3 define('CRYPTAPI_PLUGIN_VERSION', '4.7.9'); 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
r2945994 r2957840 1 1 === CryptAPI Payment Gateway for WooCommerce === 2 2 Contributors: cryptapi 3 Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero,litecoin, bitcoin cash, shib, doge3 Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, litecoin, bitcoin cash, shib, doge 4 4 Requires at least: 5 5 5 Tested up to: 6.3 6 Stable tag: 4.7. 86 Stable tag: 4.7.9 7 7 Requires PHP: 7.2 8 8 WC requires at least: 5.8 9 WC tested up to: 7.9.09 WC tested up to: 8.0.2 10 10 License: MIT 11 11 … … 15 15 == Description == 16 16 17 Accept payments in Bitcoin, Ethereum, Bitcoin Cash, Litecoin, Monero,BNB, USDT, SHIB, DOGE and many more directly to your crypto wallet, without any sign-ups or lengthy processes.17 Accept payments in Bitcoin, Ethereum, Bitcoin Cash, Litecoin, BNB, USDT, SHIB, DOGE and many more directly to your crypto wallet, without any sign-ups or lengthy processes. 18 18 All you need is to provide your crypto address. 19 19 … … 350 350 * Minor fixes 351 351 352 = 4.7.9 = 353 * Support for WooCommerce HPOS. 354 * Minor fixes 355 352 356 == Upgrade Notice == 353 357
Note: See TracChangeset
for help on using the changeset viewer.