Plugin Directory

Changeset 3360309


Ignore:
Timestamp:
09/12/2025 07:27:50 AM (7 months ago)
Author:
fraudlabspro
Message:

Removed legacy order properties

Location:
fraudlabs-pro-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fraudlabs-pro-for-woocommerce/trunk/includes/class.wc-fraudlabspro.php

    r3343268 r3360309  
    592592
    593593        $bill_country = $ship_country = '';
    594         if ( WC()->version < '2.7.0' ) {
    595             $bill_country = ( $this->order->billing_country !== "default" ) ? $this->order->billing_country : '';
    596             $ship_country = ( $this->order->shipping_country !== "default" ) ? $this->order->shipping_country : '';
    597         } else {
    598             $bill_country = ( $this->order->get_billing_country() !== "default" ) ? $this->order->get_billing_country() : '';
    599             $ship_country = ( $this->order->get_shipping_country() !== "default" ) ? $this->order->get_shipping_country() : '';
    600         }
     594        $bill_country = ( $this->order->get_billing_country() !== "default" ) ? $this->order->get_billing_country() : '';
     595        $ship_country = ( $this->order->get_shipping_country() !== "default" ) ? $this->order->get_shipping_country() : '';
    601596
    602597        $flpCallbackNonce = $this->create_custom_nonce('check-flp-callback');
     
    623618            'ip_http_forwarded_after'       => $ip_http_forwarded_after,
    624619            'ip_x_forwarded_after'          => $ip_x_forwarded_after,
    625             'first_name'                    => ( WC()->version < '2.7.0' ) ? $this->order->billing_first_name : $this->order->get_billing_first_name(),
    626             'last_name'                     => ( WC()->version < '2.7.0' ) ? $this->order->billing_last_name : $this->order->get_billing_last_name(),
    627             'bill_addr'                     => ( WC()->version < '2.7.0' ) ? trim( $this->order->billing_address_1 . ' ' . $this->order->billing_address_2 ) : trim( $this->order->get_billing_address_1() . ' ' . $this->order->get_billing_address_2() ),
    628             'bill_city'                     => ( WC()->version < '2.7.0' ) ? $this->order->billing_city : $this->order->get_billing_city(),
    629             'bill_state'                    => ( WC()->version < '2.7.0' ) ? $this->order->billing_state : $this->order->get_billing_state(),
    630             'bill_zip_code'                 => ( WC()->version < '2.7.0' ) ? $this->order->billing_postcode : $this->order->get_billing_postcode(),
     620            'first_name'                    => $this->order->get_billing_first_name(),
     621            'last_name'                     => $this->order->get_billing_last_name(),
     622            'bill_addr'                     => trim( $this->order->get_billing_address_1() . ' ' . $this->order->get_billing_address_2() ),
     623            'bill_city'                     => $this->order->get_billing_city(),
     624            'bill_state'                    => $this->order->get_billing_state(),
     625            'bill_zip_code'                 => $this->order->get_billing_postcode(),
    631626            'bill_country'                  => $bill_country,
    632             'user_phone'                    => ( WC()->version < '2.7.0' ) ? $this->order->billing_phone : $this->order->get_billing_phone(),
    633             'ship_first_name'               => ( WC()->version < '2.7.0' ) ? $this->order->shipping_first_name : $this->order->get_shipping_first_name(),
    634             'ship_last_name'                => ( WC()->version < '2.7.0' ) ? $this->order->shipping_last_name : $this->order->get_shipping_last_name(),
    635             'ship_addr'                     => ( WC()->version < '2.7.0' ) ? trim( $this->order->shipping_address_1 . ' ' . $this->order->shipping_address_2 ) : trim( $this->order->get_shipping_address_1() . ' ' . $this->order->get_shipping_address_2() ),
    636             'ship_city'                     => ( WC()->version < '2.7.0' ) ? $this->order->shipping_city : $this->order->get_shipping_city(),
    637             'ship_state'                    => ( WC()->version < '2.7.0' ) ? $this->order->shipping_state : $this->order->get_shipping_state(),
    638             'ship_zip_code'                 => ( WC()->version < '2.7.0' ) ? $this->order->shipping_postcode : $this->order->get_shipping_postcode(),
     627            'user_phone'                    => $this->order->get_billing_phone(),
     628            'ship_first_name'               => $this->order->get_shipping_first_name(),
     629            'ship_last_name'                => $this->order->get_shipping_last_name(),
     630            'ship_addr'                     => trim( $this->order->get_shipping_address_1() . ' ' . $this->order->get_shipping_address_2() ),
     631            'ship_city'                     => $this->order->get_shipping_city(),
     632            'ship_state'                    => $this->order->get_shipping_state(),
     633            'ship_zip_code'                 => $this->order->get_shipping_postcode(),
    639634            'ship_country'                  => $ship_country,
    640             'email'                         => ( WC()->version < '2.7.0' ) ? $this->order->billing_email : $this->order->get_billing_email(),
    641             'email_domain'                  => ( WC()->version < '2.7.0' ) ? substr( $this->order->billing_email, strpos( $this->order->billing_email, '@' ) + 1 ) : substr( $this->order->get_billing_email(), strpos( $this->order->get_billing_email(), '@' ) + 1 ),
    642             'email_hash'                    => ( WC()->version < '2.7.0' ) ? $this->hash_string( $this->order->billing_email ) : $this->hash_string( $this->order->get_billing_email() ),
     635            'email'                         => $this->order->get_billing_email(),
     636            'email_domain'                  => substr( $this->order->get_billing_email(), strpos( $this->order->get_billing_email(), '@' ) + 1 ),
     637            'email_hash'                    => $this->hash_string( $this->order->get_billing_email() ),
    643638            'user_order_id'                 => $this->order->get_order_number(),
    644639            'amount'                        => $this->order->get_total(),
    645640            'quantity'                      => $qty,
    646             'currency'                      => ( WC()->version < '2.7.0' ) ? $this->order->get_order_currency() : $this->order->get_currency(),
     641            'currency'                      => $this->order->get_currency(),
    647642            'payment_gateway'               => ( $payment_gateway->id ) ?? 'others',
    648643            'payment_mode'                  => $payment_mode,
     
    655650            'advanced_velocity_screening'   => ( get_option('wc_settings_woocommerce-fraudlabs-pro_flp_advanced_velocity') == "yes" ) ? 'enabled' : 'disabled',
    656651            'source'                        => 'woocommerce',
    657             'source_version'                => '2.23.1',
     652            'source_version'                => '2.23.2',
    658653            'items'                         => $item_sku,
    659654            'cc_key'                        => $cc_key,
     
    829824
    830825        if ( ( $this->notification_approve == 'yes' && $response->fraudlabspro_status == 'APPROVE' ) || ( $this->notification_review == 'yes' && $response->fraudlabspro_status == 'REVIEW' ) || ( $this->notification_reject == 'yes' && $response->fraudlabspro_status == 'REJECT' ) ) {
    831             $first_name = (  WC()->version < '2.7.0' ) ? $this->order->billing_first_name : $this->order->get_billing_first_name();
    832             $last_name = (  WC()->version < '2.7.0' ) ? $this->order->billing_last_name : $this->order->get_billing_last_name();
     826            $first_name = $this->order->get_billing_first_name();
     827            $last_name = $this->order->get_billing_last_name();
    833828
    834829            // Use zaptrigger API to get zap information
     
    853848                    'flp_status'    => $response->fraudlabspro_status,
    854849                    'full_name'     => $first_name . ' ' . $last_name,
    855                     'email'         => (  WC()->version < '2.7.0' ) ? $this->order->billing_email : $this->order->get_billing_email(),
     850                    'email'         => $this->order->get_billing_email(),
    856851                    'order_id'      => $this->order->get_id(),
    857852                ]);
  • fraudlabs-pro-for-woocommerce/trunk/init.php

    r3343254 r3360309  
    66 * Author: FraudLabs Pro
    77 * Author URI: https://www.fraudlabspro.com/
    8  * Version: 2.23.1
     8 * Version: 2.23.2
    99 * Requires Plugins: woocommerce
    1010 * Text Domain: fraudlabs-pro-for-woocommerce
  • fraudlabs-pro-for-woocommerce/trunk/readme.txt

    r3343254 r3360309  
    55Requires at least: 4.6
    66Tested up to: 6.8
    7 Stable tag: 2.23.1
     7Stable tag: 2.23.2
    88
    99Fraud prevention plugin for WooCommerce to minimize payment fraud and avoid chargebacks. With the FraudLabs Pro Micro Plan, you can get 500 free fraud validation credits every month.
     
    9898== Changelog ==
    9999
     100* 2.23.2 Removed legacy order properties.
    100101* 2.23.1 Updated hash function.
    101102* 2.23.0 Enhanced Settings page and Fraud result.
Note: See TracChangeset for help on using the changeset viewer.