WC_Stripe_UPE_Payment_Gateway D

Total Complexity 372
Dependencies 26
Dependents 9
Total lines 2,524
Lines of code 1,465
Logical lines of code 772
Comment lines 684
Methods 64
Properties 9

Methods 64

Method Rating Maintainability Complexity Lines of code
process_payment_with_deferred_intent()
C
29
25 130
process_payment_with_saved_payment_method()
C
29 24 124
process_payment()
B
32 21 100
maybe_process_upe_redirect()
B
37 23 65
javascript_params()
B
34 19 82
__construct()
B
38 19 58
payment_scripts()
B
40 15 63
prepare_payment_information_from_request()
A
37 12 73
generate_upe_checkout_experience_accepted_payments_html()
A
40 13 55
process_order_for_confirmed_intent()
A
41 13 53
payment_fields()
A
43 11 55
should_save_payment_method_from_request()
A
51 9 26
process_payment_intent_for_order()
A
49 8 31
get_payment_method_data_from_intent()
A
54 8 20
add_payment_method()
A
47 7 33
is_payment_needed()
S
58 8 13
get_existing_compatible_payment_intent()
S
54 7 20
save_appearance_ajax()
S
52 6 23
get_upe_enabled_at_checkout_payment_method_ids()
S
56 6 19
is_order_associated_to_setup_intent()
S
57 6 17
is_order_details_page()
S
64 7 8
create_token_from_setup_intent()
S
50 5 27
process_upe_redirect_payment()
S
53 5 22
validate_selected_payment_method_type()
S
53 4 24
get_payment_method_types_for_intent_creation()
S
58 4 19
handle_saving_payment_method()
S
56 4 17
set_payment_method_title_for_order()
S
58 4 15
save_payment_method_to_order()
S
60 4 13
get_upe_available_payment_methods()
S
63 4 10
get_selected_payment_method_type_from_request()
S
62 4 10
maybe_set_preferred_card_brand_for_order()
S
63 4 10
process_setup_intent_for_order()
S
59 3 15
should_upe_payment_method_show_save_option()
S
70 4 6
is_available()
S
69 4 6
retry_after_error()
S
60 3 13
get_enabled_payment_method_config()
S
58 2 16
is_payment_methods_page()
S
71 3 5
is_prepaid_card()
S
69 3 7
get_return_url_for_redirect()
S
59 2 15
stripe_request()
S
64 3 10
get_metadata_from_order()
S
58 2 14
can_refund_order()
S
69 2 7
get_user_from_order()
S
69 2 7
get_icon()
S
73 2 4
filter_saved_payment_methods_list()
S
72 2 6
is_enabled_at_checkout()
S
68 2 7
is_enabled_for_saved_payments()
S
71 2 6
get_appearance_transient_key()
S
78 2 3
is_order_associated_to_payment_intent()
S
75 2 4
is_refund_request()
S
78 2 3
get_customer_id_for_order()
S
65 2 9
get_upe_gateway_id_for_order()
S
69 2 7
get_address_data_for_payment_request()
S
60 1 13
set_selected_payment_type_for_order()
S
76 1 4
set_customer_id_for_order()
S
76 1 4
set_payment_method_id_for_order()
S
76 1 4
set_cookie_on_current_request()
S
80 1 3
init_form_fields()
S
70 1 6
is_setup_intent_success_creation_redirection()
S
77 1 3
get_upe_enabled_payment_method_ids()
S
79 1 3
validate_upe_checkout_experience_accepted_payments_field()
S
82 1 3
get_stripe_customer_from_order()
S
73 1 5
prepare_payment_method()
S
66 1 9
is_saved_cards_enabled()
S
82 1 3