Changeset 2792467
- Timestamp:
- 09/30/2022 12:18:38 PM (4 years ago)
- Location:
- cryptocurrency-payment-gateway/trunk
- Files:
-
- 8 edited
-
changelog (modified) (1 diff)
-
cryptocurrency-payment-gateway.php (modified) (2 diffs)
-
includes/payment.php (modified) (1 diff)
-
includes/processing/blockexplorers/old/class.blockio.php (modified) (1 diff)
-
includes/processing/blockexplorers/old/class.insight.php (modified) (2 diffs)
-
includes/processing/class-cw-block-explorer-processing.php (modified) (2 diffs)
-
includes/processing/class-cw-block-explorer-tools.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cryptocurrency-payment-gateway/trunk/changelog
r2780662 r2792467 1 = 1.4.3 2022-09-30 = 2 WooCommerce tested up to 6.9.4 3 Fix security image does not load on order payment page 4 Do not do tx analysis for add-ons that already did tx analysis and updated the db 5 Add api method name to block explorer api response for old add-ons 6 Fix false error 'Cannot include class CW_Block_Explorer_' in logs for some add-ons 7 Remove old processing api error emails in old blockio and insight class and replace with logging 8 1 9 = 1.4.2 2022-09-06 = 2 10 WordPress tested up to 6.0.2 -
cryptocurrency-payment-gateway/trunk/cryptocurrency-payment-gateway.php
r2780662 r2792467 7 7 * Plugin URI: https://www.cryptowoo.com/ 8 8 * Description: Digital Currency Payment Gateway for WooCommerce 9 * Version: 1.4. 29 * Version: 1.4.3 10 10 * Author: CryptoWoo AS 11 11 * Author URI: https://www.cryptowoo.com … … 45 45 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 46 46 */ 47 define( 'CWOO_VERSION', '1.4. 2' );47 define( 'CWOO_VERSION', '1.4.3' ); 48 48 define( 'CWOO_FILE', 'cryptocurrency-payment-gateway/cryptocurrency-payment-gateway.php' ); 49 49 define( 'CWOO_PLUGIN_PATH', plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) . '/' ); -
cryptocurrency-payment-gateway/trunk/includes/payment.php
r2719429 r2792467 88 88 if ( cw_get_option( 'sec_image' ) ) { 89 89 if ( $order->get_total() >= (float) cw_get_option( 'sec_image' ) ) { 90 echo wp_kses _post( CW_Formatting::generate_sec_image( $payment_address) );90 echo wp_kses( CW_Formatting::generate_sec_image( $payment_address ), 'post', array( 'data' ) ); 91 91 92 92 } -
cryptocurrency-payment-gateway/trunk/includes/processing/blockexplorers/old/class.blockio.php
r2634120 r2792467 43 43 $status = $ex->getMessage(); 44 44 45 /* 46 TODO: Implement a better way to send error emails, for example when an api consistently fails, or just once in a time period. 45 47 // Action hook for Block.io API error 46 48 do_action( 'cryptowoo_api_error', $status ); 49 */ 50 $log_data = rtrim( sprintf( "get_api_data() error: %s\n", $status ) ); 51 CW_AdminMain::cryptowoo_log_data( 0, __FUNCTION__, $log_data, 'error' ); 52 47 53 // Update rate limit transient 48 54 $limit_transient = get_transient( 'cryptowoo_limit_rates' ); -
cryptocurrency-payment-gateway/trunk/includes/processing/blockexplorers/old/class.insight.php
r2634120 r2792467 116 116 $error = $fullAddress->get_error_message() . $url; 117 117 118 /* 119 TODO: Implement a better way to send error emails, for example when an api consistently fails, or just once in a time period. 118 120 // Action hook for Insight API error 119 121 do_action( 'cryptowoo_api_error', 'Insight ' . $currency . ' API error: ' . $error ); 122 */ 123 $log_data = rtrim( sprintf( "get_api_data() error: %s\n", $error ) ); 124 CW_AdminMain::cryptowoo_log_data( 0, __FUNCTION__, $log_data, 'error' ); 120 125 121 126 // Update rate limit transient … … 395 400 $error = $getinfo->get_error_message(); 396 401 402 /* 403 TODO: Implement a better way to send error emails, for example when an api consistently fails, or just once in a time period. 397 404 // Action hook for Insight API error 398 405 do_action( 'cryptowoo_api_error', 'Insight API error: ' . $error ); 406 */ 407 $log_data = rtrim( sprintf( "get_api_data() error: %s\n", $error ) ); 408 CW_AdminMain::cryptowoo_log_data( 0, __FUNCTION__, $log_data, 'error' ); 399 409 400 410 // Update rate limit transient -
cryptocurrency-payment-gateway/trunk/includes/processing/class-cw-block-explorer-processing.php
r2780662 r2792467 122 122 } 123 123 $txs = $batch_data; 124 if ( isset( $txs['method'] ) ) { 125 $method = $txs['method']; 126 } 124 127 } 125 128 } catch ( InvalidArgumentException $exception ) { … … 212 215 // TODO: what to do with this? $last_tx_update[ $processing->tx_update_api ] = time(); 213 216 214 // Analyse tx data from api and update cryptowoo and woocommerce database. 215 self::tx_analysis( $payment_details, $batch_data ); 217 // Analyse tx data from api and update cryptowoo and woocommerce database if not already done. 218 // Add-ons that use old block explorer processing API tx analysis already updates the database. 219 if ( empty( $batch_data['dbupdate'] ) ) { 220 self::tx_analysis( $payment_details, $batch_data ); 221 } 216 222 } 217 223 } -
cryptocurrency-payment-gateway/trunk/includes/processing/class-cw-block-explorer-tools.php
r2685167 r2792467 132 132 133 133 /** 134 * Get the class name from _block explorerid134 * Get the class name from block explorer id 135 135 * 136 136 * @param string $block_explorer_id the block explorer id. … … 139 139 */ 140 140 public function get_class_name_from_block_explorer_name( $block_explorer_id ) { 141 // This prevents error 'Cannot include class CW_Block_Explorer_' if no block explorer api is selected. 142 if ( empty( $block_explorer_id ) ) { 143 return ''; 144 } 145 141 146 $block_explorer_name = str_replace( '-fallback', '', $block_explorer_id ); 142 147 -
cryptocurrency-payment-gateway/trunk/readme.txt
r2780662 r2792467 4 4 Requires at least: 4.7 5 5 Tested up to: 6.0.2 6 Stable tag: 1.4. 26 Stable tag: 1.4.3 7 7 Requires PHP: 7.1 8 8 License: GPLv2 or later … … 92 92 == Changelog == 93 93 94 = 1.4.3 = 95 * WooCommerce tested up to 6.9.4 96 * Fix security image does not load on order payment page 97 * Do not do tx analysis for add-ons that already did tx analysis and updated the db 98 * Add api method name to block explorer api response for old add-ons 99 * Fix false error 'Cannot include class CW_Block_Explorer_' in logs for some add-ons 100 * Remove old processing api error emails in old blockio and insight class and replace with logging 101 94 102 = 1.4.2 = 95 103 * WordPress tested up to 6.0.2
Note: See TracChangeset
for help on using the changeset viewer.