WC_Stripe_Payment_Gateway D

Total Complexity 346
Dependencies 14
Dependents 5
Total lines 2,093
Lines of code 1,141
Logical lines of code 636
Comment lines 649
Methods 71
Properties 1

Methods 71

Method Rating Maintainability Complexity Lines of code
prepare_source()
C
36 30 68
process_refund()
B
33 21 98
payment_scripts()
B
43 19 42
generate_payment_request()
A
39 15 57
process_response()
A
42 15 49
javascript_params()
A
38 12 62
create_and_confirm_intent_for_off_session()
A
42 11 53
generate_create_intent_request()
A
46 11 36
get_source_object_from_request()
A
53 9 22
is_valid_order_received_endpoint()
A
55 9 18
prepare_order_source()
A
48 8 33
update_fees()
A
52 8 22
add_payment_method()
A
48 7 32
update_existing_intent()
S
50 7 28
get_level3_data_from_order()
S
44 5 45
is_valid_pay_for_order_endpoint()
S
58 7 14
is_retryable_error()
S
62 7 12
save_intent_to_order()
S
57 6 17
confirm_intent()
S
53 5 23
save_payment_method()
S
60 5 13
get_owner_details()
S
52 4 24
setup_intent()
S
54 4 21
lock_order_payment()
S
62 5 10
need_update_idempotency_key()
S
65 5 9
get_intent()
S
59 4 13
save_source_to_order()
S
62 4 12
is_available()
S
63 4 12
are_keys_set()
S
65 4 9
send_failed_order_email()
S
69 4 6
is_authentication_required_for_payment()
S
74 4 4
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
get_source_object()
S
64 3 10
maybe_disallow_prepaid_card()
S
67 3 7
is_no_linked_source_error()
S
69 3 7
get_latest_charge_from_intent()
S
65 3 9
get_charge_object()
S
63 3 10
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
is_no_such_source_error()
S
69 3 7
is_prepaid_card()
S
68 3 7
save_payment_method_requested()
S
72 3 4
create_intent()
S
62 2 11
payment_icons()
S
55 1 20
is_valid_us_zip_code()
S
78 2 3
render_upe_settings()
S
70 2 6
maybe_remove_non_existent_customer()
S
66 2 9
is_original_request()
S
71 2 6
get_locale()
S
65 2 9
validate_minimum_order_amount()
S
71 2 5
get_transaction_url()
S
68 2 8
get_stripe_customer_id()
S
68 2 7
check_source()
S
69 2 6
needs_ssl_setup()
S
79 2 3
throw_localized_message()
S
72 1 5
get_upe_enabled_payment_method_ids()
S
81 1 3
unlock_order_payment()
S
76 1 4
is_type_payment_method()
S
79 1 3
get_upe_available_payment_methods()
S
81 1 3
admin_options()
S
67 1 7
display_admin_settings_webhook_description()
S
71 1 5
get_unique_settings()
S
82 1 3
enable()
S
80 1 3
disable()
S
80 1 3
is_enabled()
S
79 1 3
is_type_legacy_card()
S
79 1 3