WC_Stripe_UPE_Payment_Gateway D

Total Complexity 205
Dependencies 15
Dependents 6
Total lines 1,349
Lines of code 830
Logical lines of code 431
Comment lines 333
Methods 36
Properties 7

Methods 36

Method Rating Maintainability Complexity Lines of code
process_payment_with_saved_payment_method()
C
31 21 112
maybe_process_upe_redirect()
B
39 21 58
javascript_params()
A
37 14 68
__construct()
A
41 15 47
process_payment()
A
37 13 73
payment_scripts()
A
43 12 51
generate_upe_checkout_experience_accepted_payments_html()
A
41 12 51
payment_fields()
A
44 11 51
process_order_for_confirmed_intent()
A
42 11 47
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
generate_stripe_account_keys_html()
S
50 3 32
create_token_from_setup_intent()
S
54 3 20
retry_after_error()
S
60 3 13
stripe_request()
S
64 3 10
is_prepaid_card()
S
69 3 7
is_available()
S
67 3 7
save_payment_method_to_order()
S
64 3 10
is_payment_methods_page()
S
71 3 5
get_metadata_from_order()
S
59 2 13
can_refund_order()
S
69 2 7
get_upe_available_payment_methods()
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
get_icon()
S
79 1 3
is_setup_intent_success_creation_redirection()
S
77 1 3
prepare_payment_method()
S
66 1 9
init_form_fields()
S
70 1 6
get_upe_enabled_payment_method_ids()
S
79 1 3
validate_upe_checkout_experience_accepted_payments_field()
S
82 1 3
is_saved_cards_enabled()
S
82 1 3