WC_Payment_Gateway_WCPay D

Total Complexity 421
Dependencies 60
Dependents 20
Total lines 3,335
Lines of code 1,950
Logical lines of code 976
Comment lines 985
Methods 105
Properties 10

Methods 105

Method Rating Maintainability Complexity Lines of code
process_payment_for_order()
D
14
64 271
process_payment()
C
32 23 105
update_order_status()
B
32 19 110
get_option()
B
43 21 46
process_refund()
A
34 12 98
__construct()
A
27
3 200
capture_charge()
A
39 12 63
should_use_stripe_platform_on_checkout_page()
A
57 12 15
get_level3_data_from_order()
A
40 8 60
cancel_authorization()
A
41 7 60
add_payment_method()
A
45 7 40
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
create_setup_intent_ajax()
S
52 4 26
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_request_payment_data()
S
61 4 12
update_customer_with_order_data()
S
56 3 19
is_available()
S
70 4 6
needs_setup()
S
67 4 7
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_account_business_support_phone()
S
65 3 10
get_account_branding_icon()
S
65 3 10
get_account_branding_primary_color()
S
65 3 10
get_deposit_schedule_interval()
S
65 3 10
get_deposit_schedule_weekly_anchor()
S
65 3 10
get_deposit_status()
S
65 3 10
get_deposit_delay_days()
S
64 3 10
update_account()
S
64 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
get_account_branding_logo()
S
65 3 10
get_account_branding_secondary_color()
S
65 3 10
get_account_business_support_email()
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
get_account_business_support_address()
S
65 3 10
add_token_to_order()
S
68 3 7
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
bundle_level3_data_from_items()
S
55 1 20
get_user_formatted_tokens_array()
S
56 1 20
is_card_present_eligible()
S
68 2 8
is_card_testing_protection_eligible()
S
68 2 8
get_connection_url()
S
68 2 7
saved_payment_methods()
S
72 2 6
needs_https_setup()
S
79 2 3
append_stripelink_button()
S
70 2 6
remove_all_actions_on_preflight_check()
S
68 2 7
is_available_for_current_currency()
S
66 2 8
upe_needs_redirection()
S
77 2 3
update_option()
S
70 2 6
get_capture_type()
S
78 2 3
get_payment_token()
S
72 2 5
generate_account_statement_descriptor_html()
S
71 2 6
can_refund_order()
S
79 2 3
admin_options()
S
77 1 4
get_setup_help_text()
S
79 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_dev_mode()
S
75 1 4
get_settings_url()
S
80 1 3
get_payment_method_ids_enabled_at_checkout_filtered_by_fees()
S
79 1 3
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_upe_available_payment_methods()
S
76 1 5
get_selected_stripe_payment_type_id()
S
76 1 5
get_payment_method_ids_enabled_at_checkout()
S
76 1 5
payment_fields()
S
81 1 3
update_cached_account_data()
S
80 1 3
refresh_cached_account_data()
S
82 1 3
get_payment_method_capability_key_map()
S
82 1 3
set_cookie_on_current_request()
S
80 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
get_current_protection_level()
S
76 1 4
get_icon_url()
S
82 1 3
is_saved_cards_enabled()
S
79 1 3
set_payment_method_title_for_order()
S
91 1 2
is_connected()
S
81 1 3