WC_Stripe_UPE_Payment_Gateway D

Total Complexity 492
Dependencies 38
Dependents 11
Total lines 3,274
Lines of code 1,859
Logical lines of code 992
Comment lines 919
Methods 87
Properties 12

Methods 87

Method Rating Maintainability Complexity Lines of code
process_payment_with_payment_method()
C
30 29 119
__construct()
C
33 31 78
process_payment_with_saved_payment_method()
C
30 23 116
process_payment()
C
32 22 104
maybe_process_upe_redirect()
C
36 24 70
javascript_params()
B
31 20 96
payment_scripts()
B
40 15 63
prepare_payment_information_from_request()
B
36 14 76
generate_upe_checkout_experience_accepted_payments_html()
A
40 13 55
process_order_for_confirmed_intent()
A
41 13 53
payment_fields()
A
41 12 62
process_payment_intent_for_order()
A
45 13 38
get_payment_method_types_for_intent_creation()
A
49 11 34
is_payment_needed()
A
52 11 22
get_redirect_url()
A
48 10 31
create_token_from_setup_intent()
A
45 9 40
should_save_payment_method_from_request()
A
51 9 26
add_payment_method()
A
45 8 38
get_existing_compatible_payment_intent()
A
52 8 24
get_payment_method_data_from_intent()
A
54 8 20
handle_saving_payment_method()
S
51 7 26
process_payment_with_confirmation_token()
S
47 6 39
get_payment_method_options()
S
48 6 37
set_payment_method_title_for_order()
S
54 7 19
process_upe_redirect_payment()
S
50 6 28
save_appearance_ajax()
S
52 6 23
get_upe_enabled_at_checkout_payment_method_ids()
S
56 6 19
get_stripe_supported_payment_methods()
S
56 6 18
is_order_associated_to_setup_intent()
S
57 6 17
is_order_details_page()
S
64 7 8
get_upe_available_payment_methods()
S
60 5 13
get_selected_payment_method_type_from_request()
S
59 5 13
get_payment_intent_error_message()
S
61 5 13
validate_selected_payment_method_type()
S
53 4 24
update_enabled_payment_methods()
S
53 4 24
save_payment_method_to_order()
S
60 4 13
get_return_url_for_redirect()
S
58 3 16
filter_my_account_my_orders_actions()
S
64 4 9
should_upe_payment_method_show_save_option()
S
70 4 6
process_setup_intent_for_order()
S
59 3 15
maybe_set_preferred_card_brand_for_order()
S
63 4 10
is_available()
S
69 4 6
prepare_payment_information_for_confirmation_token()
S
59 3 14
retry_after_error()
S
59 3 13
get_testing_instructions_for_optimized_checkout()
S
62 3 11
get_enabled_payment_method_config()
S
57 2 17
get_metadata_from_order()
S
56 2 16
get_upe_gateway_id_for_order()
S
67 3 8
stripe_request()
S
64 3 10
is_payment_request_enabled()
S
66 3 8
is_prepaid_card()
S
69 3 7
is_payment_methods_page()
S
71 3 5
handle_process_payment_error()
S
57 1 17
process_payment_with_deferred_intent()
S
70 2 6
is_order_associated_to_payment_intent()
S
75 2 4
get_customer_id_for_order()
S
63 2 10
get_icon()
S
73 2 4
get_appearance_transient_key()
S
78 2 3
can_refund_order()
S
69 2 7
get_express_payment_type_from_request()
S
70 2 6
get_user_from_order()
S
69 2 7
is_refund_request()
S
78 2 3
is_enabled_at_checkout()
S
68 2 7
is_enabled_for_saved_payments()
S
71 2 6
filter_saved_payment_methods_list()
S
72 2 6
clear_appearance_transients_block_theme()
S
72 2 5
get_payment_method_instance()
S
68 2 7
get_address_data_for_payment_request()
S
60 1 13
set_cookie_on_current_request()
S
80 1 3
clear_appearance_transients()
S
81 1 3
get_testing_instructions_for_smart_checkout()
S
80 1 3
init_form_fields()
S
70 1 6
get_upe_enabled_payment_method_ids()
S
80 1 3
is_setup_intent_success_creation_redirection()
S
77 1 3
set_customer_id_for_subscription()
S
76 1 4
prepare_payment_method()
S
66 1 9
set_selected_payment_type_for_order()
S
76 1 4
set_customer_id_for_order()
S
76 1 4
set_payment_method_id_for_subscription()
S
76 1 4
set_payment_method_id_for_order()
S
76 1 4
get_stripe_customer_from_order()
S
73 1 5
prepare_payment_information_for_payment_method()
S
68 1 8
validate_upe_checkout_experience_accepted_payments_field()
S
82 1 3
is_saved_cards_enabled()
S
82 1 3
is_sepa_tokens_for_other_methods_enabled()
S
82 1 3
is_spe_enabled()
S
82 1 3
is_oc_enabled()
S
82 1 3