WC_Payments D

Total Complexity 171
Dependencies 129
Dependents 44
Total lines 1,996
Lines of code 1,062
Logical lines of code 668
Comment lines 640
Methods 72
Properties 36

Methods 72

Method Rating Maintainability Complexity Lines of code
init()
C
18
12 335
init_rest_api()
A
34 4 101
wcpay_show_old_woocommerce_for_hungary_sweden_and_czech_republic()
A
47 7 39
maybe_register_woopay_hooks()
S
46 6 36
add_woo_admin_notes()
S
55 7 18
register_gateway()
S
54 6 21
maybe_show_woopay_phone_number_error()
S
65 6 7
load_stripe_bnpl_site_messaging()
S
59 5 13
should_load_stripe_billing_integration()
S
53 4 23
possibly_add_note_source_where_clause()
S
60 4 12
enqueue_cart_scripts()
S
63 4 11
replace_wcpay_gateway_with_payment_methods()
S
57 3 18
create_api_client()
S
57 3 17
create_request()
S
58 3 16
set_gateway_top_of_list()
S
65 4 8
filter_woocommerce_form_field_woopay_email()
S
66 4 7
enqueue_dev_runtime_scripts()
S
70 4 5
hide_gateways_on_settings_page()
S
65 4 8
maybe_disable_wcpay_subscriptions_on_update()
S
71 4 5
get_file_version()
S
68 4 6
ajax_get_cart_total()
S
60 3 13
remove_woo_admin_notes()
S
60 3 13
possibly_add_source_to_notes_query()
S
63 3 11
add_wcpay_options_to_woocommerce_permissions_list()
S
53 2 26
enqueue_woopay_common_config_script()
S
52 2 24
ajax_get_woopay_signature()
S
58 2 17
validate_and_enqueue_woopay_common_config_script()
S
68 3 7
register_script_with_dependencies()
S
59 2 14
get_plugin_headers()
S
61 2 13
woopay_fields_before_billing_details()
S
54 1 21
wcpay_show_old_woocommerce_for_norway_notice()
S
57 1 20
get_wc_payments_http()
S
62 2 10
get_payment_gateway_by_id()
S
70 2 6
maybe_init_woopay_direct_checkout()
S
69 2 7
init_woopay()
S
63 2 9
install_actions()
S
70 2 6
maybe_enqueue_woopay_common_config_script()
S
70 2 6
maybe_display_express_checkout_buttons()
S
63 2 10
get_payment_method_by_id()
S
70 2 6
enqueue_assets_script()
S
63 1 11
display_admin_error()
S
79 1 3
add_ipp_emails()
S
75 1 4
is_network_saved_cards_enabled()
S
79 1 3
set_plugin_activation_timestamp()
S
79 1 3
display_admin_notice()
S
70 1 8
get_token_service()
S
80 1 3
update_plugin_version()
S
79 1 3
set_express_checkout_helper()
S
80 1 3
add_user_data_fields()
S
72 1 6
woopay_tracker()
S
80 1 3
get_payment_method_map()
S
80 1 3
get_payment_gateway_map()
S
80 1 3
get_gateway()
S
80 1 3
get_wc_payments_checkout()
S
80 1 3
get_express_checkout_helper()
S
80 1 3
get_database_cache()
S
80 1 3
set_database_cache()
S
80 1 3
set_gateway()
S
80 1 3
get_account_service()
S
80 1 3
register_checkout_gateway()
S
75 1 4
set_account_service()
S
80 1 3
get_payments_api_client()
S
80 1 3
get_localization_service()
S
80 1 3
get_action_scheduler_service()
S
80 1 3
get_fraud_service()
S
80 1 3
mode()
S
80 1 3
get_customer_service_api()
S
80 1 3
get_order_service()
S
80 1 3
set_token_service()
S
80 1 3
set_customer_service()
S
80 1 3
get_session_service()
S
80 1 3
get_customer_service()
S
80 1 3