WC_Stripe_Payment_Gateway D

Total Complexity 412
Dependencies 19
Dependents 7
Total lines 2,519
Lines of code 1,368
Logical lines of code 761
Comment lines 811
Methods 85
Properties 1

Methods 85

Method Rating Maintainability Complexity Lines of code
prepare_source()
C
36 28 66
process_refund()
C
31 24 107
process_response()
B
37 21 66
payment_scripts()
B
43 20 41
generate_payment_request()
A
39 15 58
javascript_params()
A
38 12 62
create_and_confirm_intent_for_off_session()
A
41 12 58
generate_create_intent_request()
A
46 11 37
get_source_object_from_request()
A
53 9 22
is_retryable_error()
A
56 9 19
prepare_order_source()
A
48 8 33
is_valid_order_received_endpoint()
A
55 9 18
update_fees()
A
52 8 22
save_intent_to_order()
A
54 8 22
get_level3_data_from_order()
A
42 6 51
send_failed_order_email()
A
55 8 18
add_payment_method()
A
48 7 33
lock_order_payment()
A
55 8 16
update_existing_intent()
S
50 7 29
update_saved_payment_method()
S
48 6 33
is_valid_pay_for_order_endpoint()
S
58 7 14
set_stripe_order_status_before_event()
S
56 6 18
maybe_attach_source_to_customer()
S
56 6 17
confirm_intent()
S
53 5 23
get_stripe_order_status_before_event()
S
57 5 15
save_payment_method()
S
60 5 13
send_failed_refund_emails()
S
61 5 12
get_owner_details()
S
52 4 24
setup_intent()
S
53 4 22
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
is_authentication_required_for_payment()
S
74 4 4
get_balance_transaction_id_from_charge()
S
65 4 9
are_keys_set()
S
65 4 9
get_localized_error_message_from_response()
S
65 4 9
lock_order_refund()
S
60 3 14
get_stripe_return_url()
S
59 3 14
payment_icons()
S
49 2 28
save_payment_method_checkbox()
S
60 3 13
get_intent_from_order()
S
63 3 11
is_no_such_token_error()
S
69 3 7
is_prepaid_card()
S
68 3 7
get_risk_outcome()
S
66 3 9
is_same_idempotency_error()
S
69 3 7
is_no_such_customer_error()
S
69 3 7
change_idempotency_key()
S
68 3 6
is_no_such_source_error()
S
69 3 7
get_source_object()
S
64 3 10
is_no_linked_source_error()
S
69 3 7
get_latest_charge_from_intent()
S
65 3 9
maybe_disallow_prepaid_card()
S
67 3 7
save_payment_method_requested()
S
72 3 4
is_using_saved_payment_method()
S
72 3 4
get_charge_object()
S
63 3 10
create_intent()
S
62 2 11
needs_ssl_setup()
S
79 2 3
is_valid_us_zip_code()
S
78 2 3
get_order_signature()
S
62 2 10
maybe_remove_non_existent_customer()
S
66 2 9
is_original_request()
S
71 2 6
get_locale()
S
65 2 9
check_source()
S
69 2 6
get_stripe_customer_id()
S
68 2 7
validate_minimum_order_amount()
S
71 2 5
render_upe_settings()
S
70 2 6
get_stripe_order_status_before_hold()
S
79 1 3
is_enabled()
S
79 1 3
disable()
S
80 1 3
enable()
S
80 1 3
get_unique_settings()
S
82 1 3
set_stripe_order_status_before_refund()
S
79 1 3
get_stripe_order_status_before_refund()
S
79 1 3
set_stripe_order_status_before_hold()
S
79 1 3
unlock_order_refund()
S
77 1 4
display_admin_settings_webhook_description()
S
71 1 5
admin_options()
S
66 1 8
unlock_order_payment()
S
77 1 4
get_transaction_url()
S
75 1 4
is_type_legacy_card()
S
79 1 3
throw_localized_message()
S
72 1 5
is_type_payment_method()
S
79 1 3
get_upe_available_payment_methods()
S
81 1 3
get_upe_enabled_payment_method_ids()
S
81 1 3