WC_Stripe_UPE_Payment_Gateway B

Total Complexity 79
Dependencies 7
Dependents 4
Total lines 663
Lines of code 393
Logical lines of code 182
Comment lines 174
Methods 20
Properties 6

Methods 20

Method Rating Maintainability Complexity Lines of code
payment_scripts()
A
46 10 41
process_payment()
A
42 9 53
payment_fields()
A
44 9 53
__construct()
A
47 9 31
process_upe_redirect_payment()
A
45 7 38
get_payment_method_data_from_intent()
S
57 7 15
javascript_params()
S
48 4 31
generate_upe_checkout_experience_accepted_payments_html()
S
52 4 24
generate_stripe_account_keys_html()
S
50 3 32
get_enabled_payment_method_config()
S
64 2 10
get_upe_available_payment_methods()
S
69 2 7
admin_options()
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
67 2 8
get_metadata_from_order()
S
60 1 13
get_upe_enabled_payment_method_ids()
S
69 1 8
init_form_fields()
S
75 1 4
validate_upe_checkout_experience_accepted_payments_field()
S
82 1 3
is_saved_cards_enabled()
S
79 1 3