WC_Stripe_Payment_Gateway D

Total Complexity 233
Dependencies 9
Dependents 0
Total lines 1,404
Lines of code 770
Logical lines of code 421
Comment lines 435
Methods 49
Properties 0

Methods 49

Method Rating Maintainability Complexity Lines of code
prepare_source()
C
37 26 63
process_refund()
B
38 17 67
generate_payment_request()
A
41 14 48
process_response()
A
45 12 40
add_payment_method()
A
47 12 33
create_and_confirm_intent_for_off_session()
A
44 9 47
prepare_order_source()
A
48 8 33
update_fees()
A
52 8 22
confirm_intent()
S
50 7 28
update_existing_intent()
S
53 6 23
get_level3_data_from_order()
S
47 4 36
get_owner_details()
S
52 4 24
generate_create_intent_request()
S
54 4 21
is_retryable_error()
S
66 5 9
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
64 4 11
has_subscription()
S
77 4 3
is_authentication_required_for_payment()
S
74 4 4
setup_intent()
S
58 3 15
maybe_process_pre_orders()
S
68 4 8
is_prepaid_card()
S
69 4 7
get_stripe_return_url()
S
60 3 14
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
63 3 10
send_failed_order_email()
S
70 3 6
ensure_subscription_has_customer_id()
S
63 3 10
is_no_linked_source_error()
S
69 3 7
is_no_such_source_error()
S
69 3 7
is_no_such_token_error()
S
69 3 7
is_no_such_customer_error()
S
69 3 7
is_same_idempotency_error()
S
69 3 7
create_intent()
S
62 2 11
save_intent_to_order()
S
71 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
are_keys_set()
S
69 2 7
payment_icons()
S
61 1 13
is_type_legacy_card()
S
79 1 3
unlock_order_payment()
S
76 1 4
save_payment_method_checkbox()
S
65 1 10