WC_Payment_Gateway_WCPay D

Total Complexity 381
Dependencies 39
Dependents 20
Total lines 3,008
Lines of code 1,788
Logical lines of code 861
Comment lines 868
Methods 94
Properties 9

Methods 94

Method Rating Maintainability Complexity Lines of code
process_payment_for_order()
D
17
55 237
update_order_status()
C
31 22 116
get_option()
B
45 18 40
process_payment()
B
38 15 74
process_refund()
A
35 12 92
__construct()
A
26
3 206
capture_charge()
A
39 12 64
get_level3_data_from_order()
A
40 8 60
cancel_authorization()
A
44 7 49
should_use_stripe_platform_on_checkout_page()
A
59 9 14
add_payment_method()
A
46 7 37
generate_checkbox_html()
S
57 7 15
schedule_order_tracking()
S
52 6 25
update_order_status_from_intent()
S
56 6 18
update_is_platform_checkout_enabled()
S
60 6 13
get_payment_method_type_for_order()
S
60 6 12
get_metadata_from_order()
S
52 5 23
attach_exchange_info_to_order()
S
55 5 20
create_setup_intent_ajax()
S
53 4 24
get_upe_enabled_payment_method_statuses()
S
55 4 20
create_and_confirm_setup_intent()
S
55 4 19
add_order_actions()
S
57 4 17
save_payment_method_checkbox()
S
59 4 14
validate_account_statement_descriptor_field()
S
59 4 14
create_intent()
S
51 3 27
is_platform_payment_method()
S
63 4 12
manage_customer_details_for_order()
S
53 3 23
update_customer_with_order_data()
S
55 3 20
needs_setup()
S
67 4 7
is_in_dev_mode()
S
70 4 5
is_available()
S
70 4 6
get_deposit_schedule_monthly_anchor()
S
64 4 10
prepare_payment_information()
S
60 3 12
register_scripts()
S
56 2 21
get_account_business_support_address()
S
65 3 10
get_account_branding_logo()
S
65 3 10
get_account_branding_icon()
S
65 3 10
get_account_branding_primary_color()
S
65 3 10
get_account_branding_secondary_color()
S
65 3 10
get_deposit_schedule_interval()
S
65 3 10
get_deposit_status()
S
65 3 10
get_deposit_schedule_weekly_anchor()
S
65 3 10
get_deposit_delay_days()
S
64 3 10
get_account_business_support_email()
S
65 3 10
get_deposit_completed_waiting_period()
S
65 3 10
get_connection_url()
S
64 3 10
get_account_business_support_phone()
S
65 3 10
update_account()
S
64 3 10
add_token_to_order()
S
68 3 7
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_url()
S
65 3 10
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_user_formatted_tokens_array()
S
56 1 20
bundle_level3_data_from_items()
S
55 1 20
is_card_present_eligible()
S
68 2 8
get_payment_token()
S
72 2 5
is_in_test_mode()
S
77 2 3
needs_https_setup()
S
79 2 3
can_refund_order()
S
78 2 3
is_available_for_current_currency()
S
66 2 8
is_card_testing_protection_eligible()
S
68 2 8
append_stripelink_button()
S
70 2 6
generate_account_statement_descriptor_html()
S
71 2 6
update_option()
S
70 2 6
get_capture_type()
S
78 2 3
refresh_cached_account_data()
S
82 1 3
get_settings_url()
S
80 1 3
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
should_bump_rate_limiter()
S
77 1 3
get_setup_help_text()
S
79 1 3
get_upe_available_payment_methods()
S
76 1 5
get_payment_method_ids_enabled_at_checkout()
S
76 1 5
set_cookie_on_current_request()
S
80 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
is_saved_cards_enabled()
S
79 1 3
admin_options()
S
77 1 4
attach_intent_info_to_order()
S
64 1 10
has_refund_failed()
S
78 1 3
payment_fields()
S
81 1 3
get_option_key()
S
80 1 3
set_payment_method_title_for_order()
S
91 1 2