WC_Stripe_Payment_Gateway D

Total Complexity 249
Dependencies 10
Dependents 0
Total lines 1,515
Lines of code 842
Logical lines of code 451
Comment lines 465
Methods 50
Properties 0

Methods 50

Method Rating Maintainability Complexity Lines of code
prepare_source()
C
36 29 69
process_refund()
B
35 20 80
generate_payment_request()
B
38 16 61
add_payment_method()
A
47 13 33
process_response()
A
45 12 40
create_and_confirm_intent_for_off_session()
A
42 11 52
prepare_order_source()
A
48 8 33
update_fees()
A
52 8 22
update_existing_intent()
S
52 7 26
get_level3_data_from_order()
S
44 5 45
generate_create_intent_request()
S
51 6 27
confirm_intent()
S
52 5 25
get_owner_details()
S
52 4 24
lock_order_payment()
S
62 5 10
need_update_idempotency_key()
S
65 5 9
is_retryable_error()
S
66 5 9
get_intent()
S
59 4 13
save_source_to_order()
S
63 4 11
setup_intent()
S
56 3 18
is_prepaid_card()
S
69 4 7
are_keys_set()
S
65 4 9
maybe_process_pre_orders()
S
68 4 8
has_subscription()
S
77 4 3
is_authentication_required_for_payment()
S
74 4 4
get_stripe_return_url()
S
59 3 14
get_intent_from_order()
S
63 3 11
send_failed_order_email()
S
70 3 6
get_source_object()
S
63 3 10
change_idempotency_key()
S
68 3 6
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
ensure_subscription_has_customer_id()
S
62 3 10
is_no_linked_source_error()
S
69 3 7
is_using_saved_payment_method()
S
72 3 4
create_intent()
S
62 2 11
payment_icons()
S
53 1 23
save_intent_to_order()
S
70 2 6
is_valid_us_zip_code()
S
78 2 3
is_original_request()
S
71 2 6
get_locale()
S
65 2 9
get_stripe_customer_id()
S
65 2 9
get_transaction_url()
S
68 2 8
validate_minimum_order_amount()
S
71 2 5
is_available()
S
71 2 6
save_payment_method_checkbox()
S
65 1 10
is_type_legacy_card()
S
79 1 3
unlock_order_payment()
S
76 1 4
display_admin_settings_webhook_description()
S
71 1 5