Changeset 3360309
- Timestamp:
- 09/12/2025 07:27:50 AM (7 months ago)
- Location:
- fraudlabs-pro-for-woocommerce/trunk
- Files:
-
- 3 edited
-
includes/class.wc-fraudlabspro.php (modified) (5 diffs)
-
init.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fraudlabs-pro-for-woocommerce/trunk/includes/class.wc-fraudlabspro.php
r3343268 r3360309 592 592 593 593 $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() : ''; 601 596 602 597 $flpCallbackNonce = $this->create_custom_nonce('check-flp-callback'); … … 623 618 'ip_http_forwarded_after' => $ip_http_forwarded_after, 624 619 '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(), 631 626 '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(), 639 634 '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() ), 643 638 'user_order_id' => $this->order->get_order_number(), 644 639 'amount' => $this->order->get_total(), 645 640 'quantity' => $qty, 646 'currency' => ( WC()->version < '2.7.0' ) ? $this->order->get_order_currency() :$this->order->get_currency(),641 'currency' => $this->order->get_currency(), 647 642 'payment_gateway' => ( $payment_gateway->id ) ?? 'others', 648 643 'payment_mode' => $payment_mode, … … 655 650 'advanced_velocity_screening' => ( get_option('wc_settings_woocommerce-fraudlabs-pro_flp_advanced_velocity') == "yes" ) ? 'enabled' : 'disabled', 656 651 'source' => 'woocommerce', 657 'source_version' => '2.23. 1',652 'source_version' => '2.23.2', 658 653 'items' => $item_sku, 659 654 'cc_key' => $cc_key, … … 829 824 830 825 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(); 833 828 834 829 // Use zaptrigger API to get zap information … … 853 848 'flp_status' => $response->fraudlabspro_status, 854 849 '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(), 856 851 'order_id' => $this->order->get_id(), 857 852 ]); -
fraudlabs-pro-for-woocommerce/trunk/init.php
r3343254 r3360309 6 6 * Author: FraudLabs Pro 7 7 * Author URI: https://www.fraudlabspro.com/ 8 * Version: 2.23. 18 * Version: 2.23.2 9 9 * Requires Plugins: woocommerce 10 10 * Text Domain: fraudlabs-pro-for-woocommerce -
fraudlabs-pro-for-woocommerce/trunk/readme.txt
r3343254 r3360309 5 5 Requires at least: 4.6 6 6 Tested up to: 6.8 7 Stable tag: 2.23. 17 Stable tag: 2.23.2 8 8 9 9 Fraud 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. … … 98 98 == Changelog == 99 99 100 * 2.23.2 Removed legacy order properties. 100 101 * 2.23.1 Updated hash function. 101 102 * 2.23.0 Enhanced Settings page and Fraud result.
Note: See TracChangeset
for help on using the changeset viewer.