WC_Payment_Gateway_WCPay D

Total Complexity 572
Dependencies 85
Dependents 25
Total lines 4,309
Lines of code 2,496
Logical lines of code 1,309
Comment lines 1,283
Methods 137
Properties 15

Methods 137

Method Rating Maintainability Complexity Lines of code
process_payment_for_order()
D
15
58 280
process_payment()
C
32 25 106
get_option()
C
40 25 54
process_redirect_payment()
C
31 21 108
update_order_status()
B
32 19 114
maybe_process_upe_redirect()
B
42 21 45
should_use_new_process()
B
42 18 52
__construct()
A
25
4 218
process_refund()
A
37 13 75
capture_charge()
A
39 12 62
get_payment_method_ids_enabled_at_checkout()
A
46 13 37
update_fraud_rules_based_on_general_options()
A
49 12 30
save_upe_appearance_ajax()
A
42 9 51
cancel_authorization()
A
41 7 63
should_use_stripe_platform_on_checkout_page()
A
56 10 17
add_payment_method()
A
45 7 41
maybe_refresh_fraud_protection_settings()
S
50 7 29
update_is_woopay_enabled()
S
57 7 16
handle_afterpay_shipping_requirement()
S
57 7 16
is_available()
S
58 7 14
schedule_order_tracking()
S
52 6 25
new_process_payment()
S
47 5 38
attach_exchange_info_to_order()
S
54 5 22
add_order_actions()
S
55 5 20
create_intent()
S
49 4 31
get_payment_method_type_for_order()
S
58 5 15
get_upe_enabled_payment_method_statuses()
S
55 4 20
create_and_confirm_setup_intent()
S
54 4 19
get_selected_upe_payment_methods()
S
58 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
validate_account_statement_descriptor_field()
S
59 4 14
update_account_settings()
S
61 4 13
get_request_payment_data()
S
61 4 12
update_customer_with_order_data()
S
56 3 19
validate_order_id_received_vs_intent_meta_order_id()
S
57 3 17
is_setup_intent_success_creation_redirection()
S
69 4 6
get_deposit_schedule_monthly_anchor()
S
64 4 10
is_enabled_for_saved_payments()
S
66 4 8
needs_setup()
S
67 4 7
set_cookie_on_current_request()
S
71 4 5
manage_customer_details_for_order()
S
59 3 14
get_payment_methods_from_gateway_id()
S
60 3 12
prepare_payment_information()
S
60 3 12
set_payment_method_title_for_order()
S
61 3 11
update_account()
S
63 3 11
init_hooks()
S
53 2 21
get_method_description()
S
58 2 19
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_schedule_weekly_anchor()
S
65 3 10
get_deposit_status()
S
65 3 10
get_theme_icon()
S
68 3 7
get_deposit_delay_days()
S
64 3 10
get_account_country()
S
64 3 10
get_account_business_support_email()
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
is_proper_intent_used_with_order()
S
60 2 15
is_payment_methods_page()
S
71 3 5
get_account_business_support_phone()
S
65 3 10
get_account_branding_logo()
S
65 3 10
get_account_business_support_address()
S
65 3 10
get_account_statement_descriptor()
S
65 3 10
add_token_to_order()
S
68 3 7
is_mandate_data_required()
S
71 3 5
get_account_business_url()
S
65 3 10
init_settings()
S
73 3 4
get_account_statement_descriptor_kanji()
S
65 3 10
get_account_statement_descriptor_kana()
S
65 3 10
get_account_business_name()
S
65 3 10
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
create_token_from_setup_intent()
S
60 2 12
update_saved_payment_method()
S
61 2 12
get_upe_available_payment_methods()
S
54 1 23
get_user_formatted_tokens_array()
S
56 1 20
saved_payment_methods()
S
72 2 6
needs_https_setup()
S
79 2 3
remove_all_actions_on_preflight_check()
S
65 2 9
get_connection_url()
S
68 2 7
is_account_partially_onboarded()
S
79 2 3
is_card_testing_protection_eligible()
S
68 2 8
append_stripelink_button()
S
70 2 6
upe_needs_redirection()
S
77 2 3
maybe_update_properties_with_country()
S
67 2 8
is_card_present_eligible()
S
68 2 8
modify_create_intent_parameters_when_processing_payment()
S
73 2 5
is_available_for_current_currency()
S
66 2 8
can_refund_order()
S
79 2 3
get_capture_type()
S
78 2 3
update_option()
S
70 2 6
get_payment_token()
S
72 2 5
clear_upe_appearance_transient()
S
63 1 12
get_mandate_data()
S
63 1 11
wc_payments_get_payment_method_map()
S
81 1 3
has_refund_failed()
S
79 1 3
get_option_key()
S
80 1 3
get_selected_payment_method()
S
80 1 3
get_payment_method_type_from_payment_details()
S
79 1 3
get_stripe_id()
S
82 1 3
get_payment_methods()
S
82 1 3
get_payment_method()
S
82 1 3
wc_payments_get_payment_gateway_by_id()
S
80 1 3
wc_payments_get_payment_method_by_id()
S
80 1 3
payment_fields()
S
76 1 4
display_gateway_html()
S
76 1 5
is_in_dev_mode()
S
75 1 4
is_in_test_mode()
S
75 1 4
get_account_default_currency()
S
81 1 3
is_connected()
S
81 1 3
get_settings_url()
S
80 1 3
get_level3_data_from_order()
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
get_payment_method_to_use_for_intent()
S
74 1 4
get_icon_url()
S
81 1 3
is_enabled()
S
79 1 3
disable()
S
80 1 3
get_upe_enabled_payment_method_ids()
S
69 1 8
get_payment_method_capability_key_map()
S
82 1 3
should_support_saved_payments()
S
80 1 3
refresh_cached_account_data()
S
82 1 3
update_cached_account_data()
S
80 1 3
get_selected_stripe_payment_type_id()
S
82 1 3
get_metadata_from_order()
S
75 1 4
get_payment_method_ids_enabled_at_checkout_filtered_by_fees()
S
71 1 5
get_current_protection_level()
S
76 1 4
get_setup_help_text()
S
79 1 3
should_bump_rate_limiter()
S
77 1 3
enable()
S
80 1 3