WC_Stripe_Payment_Gateway D

Total Complexity 327
Dependencies 13
Dependents 5
Total lines 1,951
Lines of code 1,073
Logical lines of code 606
Comment lines 600
Methods 66
Properties 1

Methods 66

Method Rating Maintainability Complexity Lines of code
prepare_source()
C
35 30 70
generate_payment_request()
B
36 22 67
process_refund()
B
34 20 86
payment_scripts()
B
43 20 42
process_response()
A
44 13 43
create_and_confirm_intent_for_off_session()
A
41 12 55
add_payment_method()
A
47 13 33
javascript_params()
A
38 11 62
generate_create_intent_request()
A
46 11 36
prepare_order_source()
A
48 8 33
update_fees()
A
52 8 22
is_valid_pay_for_order_endpoint()
A
55 8 19
update_existing_intent()
S
50 7 28
get_level3_data_from_order()
S
44 5 45
is_retryable_error()
S
62 7 12
confirm_intent()
S
53 5 23
save_intent_to_order()
S
58 5 15
get_owner_details()
S
52 4 24
setup_intent()
S
54 4 21
need_update_idempotency_key()
S
65 5 9
lock_order_payment()
S
62 5 10
get_intent()
S
59 4 13
save_source_to_order()
S
62 4 12
is_authentication_required_for_payment()
S
74 4 4
are_keys_set()
S
65 4 9
get_localized_error_message_from_response()
S
65 4 9
get_stripe_return_url()
S
59 3 14
save_payment_method_checkbox()
S
60 3 13
get_intent_from_order()
S
63 3 11
change_idempotency_key()
S
68 3 6
is_using_saved_payment_method()
S
72 3 4
maybe_disallow_prepaid_card()
S
67 3 7
is_prepaid_card()
S
68 3 7
save_payment_method_requested()
S
72 3 4
is_same_idempotency_error()
S
69 3 7
is_no_such_customer_error()
S
69 3 7
is_no_such_token_error()
S
69 3 7
get_charge_object()
S
63 3 10
get_source_object()
S
64 3 10
is_no_such_source_error()
S
69 3 7
send_failed_order_email()
S
70 3 6
is_no_linked_source_error()
S
69 3 7
create_intent()
S
62 2 11
payment_icons()
S
55 1 19
validate_minimum_order_amount()
S
71 2 5
is_valid_us_zip_code()
S
78 2 3
is_original_request()
S
71 2 6
maybe_remove_non_existent_customer()
S
66 2 9
get_transaction_url()
S
68 2 8
is_available()
S
71 2 6
get_stripe_customer_id()
S
68 2 7
check_source()
S
69 2 6
get_latest_charge_from_intent()
S
69 2 7
get_locale()
S
65 2 9
render_upe_settings()
S
70 2 6
is_enabled()
S
79 1 3
disable()
S
80 1 3
throw_localized_message()
S
72 1 5
enable()
S
80 1 3
is_type_payment_method()
S
79 1 3
display_admin_settings_webhook_description()
S
71 1 5
admin_options()
S
67 1 7
unlock_order_payment()
S
76 1 4
is_type_legacy_card()
S
79 1 3
get_upe_available_payment_methods()
S
81 1 3
get_upe_enabled_payment_method_ids()
S
81 1 3