WC_Gateway_Stripe D

Total Complexity 187
Dependencies 14
Dependents 3
Total lines 1,308
Lines of code 748
Logical lines of code 398
Comment lines 382
Methods 41
Properties 10

Methods 41

Method Rating Maintainability Complexity Lines of code
process_payment()
B
34 21 88
payment_scripts()
A
45 16 36
payment_fields()
A
42 14 48
javascript_params()
A
40 11 54
verify_intent_after_checkout()
A
47 12 36
prepare_intent_for_order_pay_page()
A
49 8 31
modify_successful_payment_result()
S
52 7 24
__construct()
S
41 4 54
process_admin_options()
S
53 6 22
save_payment_method()
S
59 5 13
display_order_payout()
S
53 4 24
display_order_fee()
S
53 4 24
elements_form()
S
48 2 50
render_payment_intent_inputs()
S
55 4 19
generate_stripe_account_keys_html()
S
50 3 32
prepare_order_pay_page()
S
57 4 16
complete_free_order()
S
57 3 18
show_update_card_notice()
S
67 4 6
get_localized_error_message_from_response()
S
65 4 9
get_checkout_payment_url()
S
67 4 7
check_intent_status_on_order_page()
S
64 4 10
retry_after_error()
S
59 3 13
validate_publishable_key_field()
S
67 3 7
settings_api_sanitized_fields()
S
67 3 8
is_available()
S
71 3 6
validate_test_secret_key_field()
S
67 3 7
get_icon()
S
64 3 9
validate_test_publishable_key_field()
S
67 3 7
maybe_disallow_prepaid_card()
S
67 3 7
failed_sca_auth()
S
65 3 9
validate_secret_key_field()
S
67 3 7
admin_options()
S
69 2 7
maybe_remove_non_existent_customer()
S
66 2 9
check_source()
S
69 2 6
change_no_available_methods_message()
S
79 1 3
handle_intent_verification_failure()
S
80 1 3
throw_localized_message()
S
72 1 5
handle_intent_verification_success()
S
79 1 3
init_form_fields()
S
78 1 3
get_saved_payment_method_option_html()
S
71 1 5
set_cookie_on_current_request()
S
80 1 3