WC_Payment_Gateway_Stripe D

Total Complexity 271
Dependencies 14
Dependents 13
Total lines 1,842
Lines of code 1,005
Logical lines of code 532
Comment lines 616
Methods 98
Properties 19

Methods 98

Method Rating Maintainability Complexity Lines of code
output_display_items()
A
43 11 43
get_display_items_for_cart()
A
49 12 26
enqueue_frontend_scripts()
A
48 11 33
process_payment()
A
47 10 36
get_formatted_shipping_methods()
A
50 9 28
get_order_meta_data()
A
50 8 29
get_display_items_for_order()
A
51 8 24
get_needs_shipping()
A
57 8 16
should_save_payment_method()
S
58 8 14
get_shipping_packages()
S
56 7 17
capture_charge()
S
50 6 27
save_zero_total_meta()
S
54 6 20
get_formatted_shipping_method()
S
56 6 18
add_payment_method()
S
50 5 28
process_pre_order()
S
51 5 27
scheduled_subscription_payment()
S
50 5 27
process_pre_order_payment()
S
51 5 26
get_display_items()
S
58 5 14
get_localized_params()
S
45 3 40
save_order_meta()
S
53 4 21
save_payment_method()
S
55 4 19
process_change_payment_method_request()
S
55 4 19
get_saved_source_id()
S
62 5 10
payment_methods_list_item()
S
59 4 13
process_zero_total_order()
S
60 4 13
use_saved_source()
S
72 4 4
get_payment_token()
S
59 3 14
void_charge()
S
62 3 11
process_refund()
S
57 2 18
get_generic_error()
S
67 3 7
get_payment_source()
S
66 3 10
banner_checkout_enabled()
S
73 3 4
set_payment_save_error()
S
64 3 9
get_token()
S
64 3 9
get_new_source_token()
S
76 3 3
payment_fields()
S
61 2 13
create_payment_method()
S
62 2 12
init_supports()
S
58 1 19
__construct()
S
58 1 16
create_customer()
S
64 2 10
validate_payment_sections_field()
S
72 2 6
update_failing_payment_method()
S
66 2 8
get_payment_method_formats()
S
66 2 9
release_order_lock()
S
78 2 3
has_order_lock()
S
74 2 4
is_change_payment_method_request()
S
79 2 3
subscription_payment_meta()
S
59 1 15
get_transaction_url()
S
67 2 8
trigger_post_payment_processes()
S
73 2 5
order_contains_pre_order()
S
79 2 3
get_payment_intent_id()
S
77 2 3
set_order_lock()
S
73 2 4
enqueue_mini_cart_scripts()
S
65 2 8
hooks()
S
60 1 12
product_fields()
S
63 1 12
is_processing_scheduled_payment()
S
79 1 3
has_enqueued_scripts()
S
82 1 3
add_stripe_order_args()
S
91 1 2
get_display_item_for_product()
S
69 1 7
get_shipping_method_id()
S
79 1 3
get_display_item_for_order()
S
69 1 7
set_post_payment_process()
S
80 1 3
get_payment_section_description()
S
73 1 5
get_display_item_for_cart()
S
69 1 7
get_mini_cart_dependencies()
S
82 1 3
get_formatted_shipping_label()
S
79 1 3
get_element_options()
S
74 1 4
mini_cart_enabled()
S
78 1 3
pre_order_requires_tokenization()
S
80 1 3
get_payment_method_from_request()
S
81 1 3
init_form_fields()
S
67 1 7
get_method_formats()
S
81 1 3
enqueue_admin_scripts()
S
91 1 2
cart_fields()
S
72 1 5
mini_cart_fields()
S
74 1 4
enqueue_checkout_scripts()
S
91 1 2
enqueue_add_payment_method_scripts()
S
81 1 3
enqueue_cart_scripts()
S
91 1 2
enqueue_product_scripts()
S
91 1 2
get_payment_method_from_charge()
S
80 1 3
retrieve_charge()
S
80 1 3
get_order_error()
S
69 1 6
get_new_source_id()
S
81 1 3
get_order_description()
S
77 1 3
delete_payment_method()
S
82 1 3
saved_payment_methods()
S
67 1 9
get_new_method_label()
S
79 1 3
get_saved_methods_label()
S
79 1 3
show_save_source()
S
82 1 3
get_shipping_methods()
S
81 1 3
product_checkout_enabled()
S
78 1 3
cart_checkout_enabled()
S
78 1 3
add_to_cart_response()
S
82 1 3
get_update_shipping_method_response()
S
82 1 3
get_update_shipping_address_response()
S
79 1 3
set_payment_method_token()
S
81 1 3
set_new_source_token()
S
81 1 3
is_installment_available()
S
82 1 3