WC_Stripe_UPE_Payment_Gateway D

Total Complexity 188
Dependencies 12
Dependents 6
Total lines 1,239
Lines of code 763
Logical lines of code 383
Comment lines 305
Methods 35
Properties 7

Methods 35

Method Rating Maintainability Complexity Lines of code
process_payment_with_saved_payment_method()
B
31 20 112
maybe_process_upe_redirect()
B
44 19 38
javascript_params()
B
36 16 74
__construct()
A
42 15 46
process_payment()
A
38 12 65
generate_upe_checkout_experience_accepted_payments_html()
A
41 12 51
payment_fields()
A
43 11 54
payment_scripts()
A
44 10 48
process_order_for_confirmed_intent()
A
46 9 35
get_payment_method_data_from_intent()
S
56 7 17
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
retry_after_error()
S
60 3 13
is_payment_methods_page()
S
71 3 5
stripe_request()
S
64 3 10
is_available()
S
67 3 7
is_prepaid_card()
S
69 3 7
save_payment_method_to_order()
S
64 3 10
get_metadata_from_order()
S
59 2 13
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_upe_available_payment_methods()
S
69 2 7
get_enabled_payment_method_config()
S
64 2 10
admin_options()
S
69 2 7
is_automatic_capture_enabled()
S
78 2 3
get_icon()
S
79 1 3
prepare_payment_method()
S
64 1 10
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
is_setup_intent_success_creation_redirection()
S
77 1 3
init_form_fields()
S
70 1 6