WC_Stripe_UPE_Payment_Gateway D

Total Complexity 216
Dependencies 17
Dependents 7
Total lines 1,356
Lines of code 829
Logical lines of code 440
Comment lines 337
Methods 35
Properties 7

Methods 35

Method Rating Maintainability Complexity Lines of code
process_payment()
C
32 23 96
process_payment_with_saved_payment_method()
C
31 21 112
maybe_process_upe_redirect()
B
39 21 58
__construct()
B
41 16 47
payment_scripts()
A
41 14 60
javascript_params()
A
38 14 60
generate_upe_checkout_experience_accepted_payments_html()
A
41 12 51
payment_fields()
A
43 11 54
process_order_for_confirmed_intent()
A
42 11 48
get_payment_method_data_from_intent()
A
54 9 20
is_payment_needed()
S
58 8 13
get_upe_enabled_at_checkout_payment_method_ids()
S
57 6 18
process_upe_redirect_payment()
S
53 5 22
create_token_from_setup_intent()
S
54 3 20
retry_after_error()
S
60 3 13
is_payment_methods_page()
S
71 3 5
is_prepaid_card()
S
69 3 7
is_available()
S
67 3 7
save_payment_method_to_order()
S
64 3 10
get_upe_available_payment_methods()
S
64 3 10
stripe_request()
S
64 3 10
get_metadata_from_order()
S
59 2 13
can_refund_order()
S
69 2 7
get_user_from_order()
S
69 2 7
is_enabled_at_checkout()
S
71 2 6
is_enabled_for_saved_payments()
S
71 2 6
set_payment_method_title_for_order()
S
65 2 9
get_enabled_payment_method_config()
S
64 2 10
prepare_payment_method()
S
66 1 9
validate_upe_checkout_experience_accepted_payments_field()
S
82 1 3
is_saved_cards_enabled()
S
82 1 3
get_upe_enabled_payment_method_ids()
S
79 1 3
init_form_fields()
S
70 1 6
is_setup_intent_success_creation_redirection()
S
77 1 3
get_icon()
S
79 1 3