Plugin Directory

Changeset 2792467


Ignore:
Timestamp:
09/30/2022 12:18:38 PM (4 years ago)
Author:
CryptoWoo
Message:

Updating to version 1.4.3

Location:
cryptocurrency-payment-gateway/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cryptocurrency-payment-gateway/trunk/changelog

    r2780662 r2792467  
     1= 1.4.3 2022-09-30 =
     2WooCommerce tested up to 6.9.4
     3Fix security image does not load on order payment page
     4Do not do tx analysis for add-ons that already did tx analysis and updated the db
     5Add api method name to block explorer api response for old add-ons
     6Fix false error 'Cannot include class CW_Block_Explorer_' in logs for some add-ons
     7Remove old processing api error emails in old blockio and insight class and replace with logging
     8
    19= 1.4.2 2022-09-06 =
    210WordPress tested up to 6.0.2
  • cryptocurrency-payment-gateway/trunk/cryptocurrency-payment-gateway.php

    r2780662 r2792467  
    77 * Plugin URI: https://www.cryptowoo.com/
    88 * Description: Digital Currency Payment Gateway for WooCommerce
    9  * Version: 1.4.2
     9 * Version: 1.4.3
    1010 * Author: CryptoWoo AS
    1111 * Author URI: https://www.cryptowoo.com
     
    4545OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    4646 */
    47 define( 'CWOO_VERSION', '1.4.2' );
     47define( 'CWOO_VERSION', '1.4.3' );
    4848define( 'CWOO_FILE', 'cryptocurrency-payment-gateway/cryptocurrency-payment-gateway.php' );
    4949define( 'CWOO_PLUGIN_PATH', plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) . '/' );
  • cryptocurrency-payment-gateway/trunk/includes/payment.php

    r2719429 r2792467  
    8888                        if ( cw_get_option( 'sec_image' ) ) {
    8989                            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' ) );
    9191
    9292                            }
  • cryptocurrency-payment-gateway/trunk/includes/processing/blockexplorers/old/class.blockio.php

    r2634120 r2792467  
    4343            $status = $ex->getMessage();
    4444
     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.
    4547            // Action hook for Block.io API error
    4648            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
    4753            // Update rate limit transient
    4854            $limit_transient              = get_transient( 'cryptowoo_limit_rates' );
  • cryptocurrency-payment-gateway/trunk/includes/processing/blockexplorers/old/class.insight.php

    r2634120 r2792467  
    116116            $error = $fullAddress->get_error_message() . $url;
    117117
     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.
    118120            // Action hook for Insight API error
    119121            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' );
    120125
    121126            // Update rate limit transient
     
    395400            $error = $getinfo->get_error_message();
    396401
     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.
    397404            // Action hook for Insight API error
    398405            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' );
    399409
    400410            // Update rate limit transient
  • cryptocurrency-payment-gateway/trunk/includes/processing/class-cw-block-explorer-processing.php

    r2780662 r2792467  
    122122                        }
    123123                        $txs = $batch_data;
     124                        if ( isset( $txs['method'] ) ) {
     125                            $method = $txs['method'];
     126                        }
    124127                    }
    125128                } catch ( InvalidArgumentException $exception ) {
     
    212215                        // TODO: what to do with this? $last_tx_update[ $processing->tx_update_api ] = time();
    213216
    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                        }
    216222                    }
    217223                }
  • cryptocurrency-payment-gateway/trunk/includes/processing/class-cw-block-explorer-tools.php

    r2685167 r2792467  
    132132
    133133    /**
    134      * Get the class name from _block explorerid
     134     * Get the class name from block explorer id
    135135     *
    136136     * @param string $block_explorer_id the block explorer id.
     
    139139     */
    140140    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
    141146        $block_explorer_name = str_replace( '-fallback', '', $block_explorer_id );
    142147
  • cryptocurrency-payment-gateway/trunk/readme.txt

    r2780662 r2792467  
    44Requires at least: 4.7
    55Tested up to: 6.0.2
    6 Stable tag: 1.4.2
     6Stable tag: 1.4.3
    77Requires PHP: 7.1
    88License: GPLv2 or later
     
    9292== Changelog ==
    9393
     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
    94102= 1.4.2 =
    95103* WordPress tested up to 6.0.2
Note: See TracChangeset for help on using the changeset viewer.