WC_Payment_Gateway_WCPay D

Total Complexity 438
Dependencies 58
Dependents 20
Total lines 3,403
Lines of code 1,994
Logical lines of code 1,028
Comment lines 996
Methods 106
Properties 9

Methods 106

Method Rating Maintainability Complexity Lines of code
process_payment_for_order()
D
15
61 253
process_payment()
C
32 23 102
update_order_status()
B
32 19 110
get_option()
B
44 20 44
process_refund()
A
35 12 96
__construct()
A
26
3 207
capture_charge()
A
39 12 63
should_use_stripe_platform_on_checkout_page()
A
57 11 15
get_level3_data_from_order()
A
40 8 60
cancel_authorization()
A
41 7 60
check_payment_intent_attached_to_order_succeeded()
A
46 8 37
add_payment_method()
A
46 7 37
register_scripts_for_zero_order_total()
A
54 8 21
update_is_platform_checkout_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
check_against_session_processing_order()
S
50 5 31
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
create_setup_intent_ajax()
S
52 4 25
get_upe_enabled_payment_method_statuses()
S
55 4 20
create_and_confirm_setup_intent()
S
56 4 17
validate_account_statement_descriptor_field()
S
59 4 14
save_payment_method_checkbox()
S
59 4 14
is_platform_payment_method()
S
63 4 12
get_advanced_fraud_protection_settings()
S
63 4 11
update_customer_with_order_data()
S
56 3 19
get_deposit_schedule_monthly_anchor()
S
64 4 10
is_available()
S
70 4 6
needs_setup()
S
67 4 7
manage_customer_details_for_order()
S
59 3 14
prepare_payment_information()
S
60 3 12
get_deposit_status()
S
65 3 10
get_deposit_delay_days()
S
64 3 10
get_deposit_completed_waiting_period()
S
65 3 10
get_account_branding_icon()
S
65 3 10
get_deposit_schedule_weekly_anchor()
S
65 3 10
update_account()
S
64 3 10
get_deposit_schedule_interval()
S
65 3 10
get_account_branding_secondary_color()
S
65 3 10
get_account_branding_primary_color()
S
65 3 10
clear_session_processing_order_after_landing_order_received_page()
S
68 3 7
get_session_processing_order()
S
67 3 8
register_scripts()
S
59 2 15
remove_session_processing_order()
S
70 3 6
get_account_branding_logo()
S
65 3 10
get_connection_url()
S
64 3 10
get_account_business_support_phone()
S
65 3 10
add_token_to_order()
S
68 3 7
get_account_business_support_email()
S
65 3 10
get_account_business_support_address()
S
65 3 10
get_account_business_url()
S
65 3 10
get_account_business_name()
S
65 3 10
get_account_statement_descriptor()
S
65 3 10
update_account_settings()
S
64 3 10
init_settings()
S
73 3 4
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
bundle_level3_data_from_items()
S
55 1 20
get_user_formatted_tokens_array()
S
56 1 20
is_available_for_current_currency()
S
66 2 8
saved_payment_methods()
S
72 2 6
is_card_present_eligible()
S
68 2 8
is_card_testing_protection_eligible()
S
68 2 8
needs_https_setup()
S
79 2 3
append_stripelink_button()
S
70 2 6
can_refund_order()
S
79 2 3
update_option()
S
70 2 6
get_payment_token()
S
72 2 5
get_current_protection_level()
S
69 2 7
maybe_update_session_processing_order()
S
74 2 5
get_capture_type()
S
78 2 3
generate_account_statement_descriptor_html()
S
71 2 6
has_refund_failed()
S
79 1 3
get_option_key()
S
80 1 3
should_bump_rate_limiter()
S
77 1 3
set_payment_method_title_for_order()
S
91 1 2
admin_options()
S
77 1 4
get_settings_url()
S
80 1 3
is_in_dev_mode()
S
75 1 4
get_upe_available_payment_methods()
S
76 1 5
is_in_test_mode()
S
75 1 4
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_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
get_payment_method_ids_enabled_at_checkout()
S
76 1 5
refresh_cached_account_data()
S
82 1 3
get_payment_method_capability_key_map()
S
82 1 3
is_connected()
S
81 1 3
get_upe_enabled_payment_method_ids()
S
69 1 8
enable()
S
80 1 3
disable()
S
80 1 3
is_enabled()
S
79 1 3
get_transaction_url()
S
72 1 5
set_cookie_on_current_request()
S
80 1 3
is_saved_cards_enabled()
S
79 1 3
payment_fields()
S
81 1 3
get_icon_url()
S
82 1 3