WC_Payment_Gateway_WCPay D

Total Complexity 443
Dependencies 64
Dependents 20
Total lines 3,572
Lines of code 2,073
Logical lines of code 1,028
Comment lines 1,074
Methods 115
Properties 11

Methods 115

Method Rating Maintainability Complexity Lines of code
process_payment_for_order()
D
15
61 277
process_payment()
C
31 27 113
update_order_status()
B
32 19 111
get_option()
B
42 23 50
process_refund()
A
34 12 98
capture_charge()
A
39 12 63
__construct()
A
27
3 188
get_level3_data_from_order()
A
40 8 60
cancel_authorization()
A
41 7 60
should_use_stripe_platform_on_checkout_page()
A
57 10 15
add_payment_method()
A
45 7 41
update_is_woopay_enabled()
A
54 8 19
maybe_refresh_fraud_protection_settings()
S
50 7 29
generate_checkbox_html()
S
57 7 15
schedule_order_tracking()
S
52 6 25
get_metadata_from_order()
S
52 5 23
attach_exchange_info_to_order()
S
54 5 21
add_order_actions()
S
55 5 20
create_intent()
S
49 4 30
get_payment_method_type_for_order()
S
59 5 13
get_upe_enabled_payment_method_statuses()
S
55 4 20
create_and_confirm_setup_intent()
S
56 4 17
create_setup_intent_ajax()
S
50 3 30
save_payment_method_checkbox()
S
59 4 14
get_payment_method_types()
S
58 4 14
get_payment_methods_from_gateway_id()
S
58 4 14
validate_account_statement_descriptor_field()
S
59 4 14
is_platform_payment_method()
S
63 4 12
get_request_payment_data()
S
61 4 12
update_customer_with_order_data()
S
56 3 19
get_method_description()
S
51 2 33
needs_setup()
S
67 4 7
is_available()
S
70 4 6
get_deposit_schedule_monthly_anchor()
S
64 4 10
manage_customer_details_for_order()
S
59 3 14
prepare_payment_information()
S
60 3 12
init_hooks()
S
56 2 17
get_deposit_schedule_interval()
S
65 3 10
get_account_branding_secondary_color()
S
65 3 10
get_account_branding_icon()
S
65 3 10
get_account_branding_logo()
S
65 3 10
get_deposit_schedule_weekly_anchor()
S
65 3 10
get_account_country()
S
64 3 10
get_deposit_delay_days()
S
64 3 10
get_deposit_status()
S
65 3 10
get_deposit_restrictions()
S
65 3 10
get_deposit_completed_waiting_period()
S
65 3 10
get_advanced_fraud_protection_settings()
S
66 3 8
update_account()
S
64 3 10
get_account_business_support_email()
S
65 3 10
get_account_business_support_phone()
S
65 3 10
get_account_branding_primary_color()
S
65 3 10
get_account_business_support_address()
S
65 3 10
get_account_business_name()
S
65 3 10
get_account_business_url()
S
65 3 10
get_account_statement_descriptor()
S
65 3 10
update_account_settings()
S
64 3 10
add_token_to_order()
S
68 3 7
init_settings()
S
73 3 4
get_account_domestic_currency()
S
60 2 14
output_payments_settings_screen()
S
61 2 14
checkout_update_email_field_priority()
S
60 2 13
update_saved_payment_method()
S
61 2 12
get_shipping_data_from_order()
S
56 1 21
get_user_formatted_tokens_array()
S
56 1 20
bundle_level3_data_from_items()
S
55 1 20
append_stripelink_button()
S
70 2 6
get_connection_url()
S
68 2 7
needs_https_setup()
S
79 2 3
remove_all_actions_on_preflight_check()
S
67 2 8
upe_needs_redirection()
S
77 2 3
is_card_present_eligible()
S
68 2 8
is_card_testing_protection_eligible()
S
68 2 8
is_available_for_current_currency()
S
66 2 8
saved_payment_methods()
S
72 2 6
is_upe_incompatible_with_woopay()
S
79 2 3
get_payment_method_to_use_for_intent()
S
69 2 6
get_capture_type()
S
78 2 3
generate_account_statement_descriptor_html()
S
71 2 6
get_payment_token()
S
72 2 5
update_option()
S
70 2 6
can_refund_order()
S
79 2 3
get_mandate_data()
S
63 1 11
get_settings_url()
S
80 1 3
has_refund_failed()
S
79 1 3
should_bump_rate_limiter()
S
77 1 3
get_option_key()
S
80 1 3
is_in_test_mode()
S
75 1 4
set_cookie_on_current_request()
S
80 1 3
is_in_dev_mode()
S
75 1 4
get_upe_available_payment_methods()
S
76 1 5
is_current_page_settings()
S
75 1 4
get_payment_fields_js_config()
S
75 1 4
get_prepared_customer_data()
S
75 1 4
get_account_default_currency()
S
81 1 3
get_setup_help_text()
S
79 1 3
get_selected_stripe_payment_type_id()
S
76 1 5
get_payment_method_ids_enabled_at_checkout_filtered_by_fees()
S
79 1 3
is_enabled()
S
79 1 3
admin_options()
S
77 1 4
get_icon_url()
S
82 1 3
set_payment_method_title_for_order()
S
91 1 2
is_saved_cards_enabled()
S
79 1 3
get_current_protection_level()
S
76 1 4
get_transaction_url()
S
72 1 5
disable()
S
80 1 3
get_payment_method_ids_enabled_at_checkout()
S
76 1 5
enable()
S
80 1 3
get_upe_enabled_payment_method_ids()
S
69 1 8
is_connected()
S
81 1 3
get_payment_method_capability_key_map()
S
82 1 3
refresh_cached_account_data()
S
82 1 3
update_cached_account_data()
S
80 1 3
payment_fields()
S
81 1 3
modify_create_intent_parameters_when_processing_payment()
S
91 1 2