WC_Payment_Gateway_Stripe D

Total Complexity 297
Dependencies 21
Dependents 16
Total lines 1,968
Lines of code 1,089
Logical lines of code 577
Comment lines 637
Methods 103
Properties 23

Methods 103

Method Rating Maintainability Complexity Lines of code
output_display_items()
B
39 16 57
get_display_items_for_cart()
A
49 12 26
enqueue_frontend_scripts()
A
50 11 31
show_save_payment_method_html()
A
52 11 24
process_payment()
A
47 10 36
get_formatted_shipping_methods()
A
50 9 28
save_payment_method()
A
47 8 35
get_order_meta_data()
A
50 8 29
add_payment_method()
A
45 7 40
get_display_items_for_order()
A
51 8 24
get_shipping_packages()
A
53 8 21
scheduled_subscription_payment()
A
48 7 33
get_needs_shipping()
A
57 8 16
should_save_payment_method()
S
58 8 14
capture_charge()
S
50 6 28
get_formatted_shipping_method()
S
56 6 18
process_pre_order()
S
51 5 27
process_pre_order_payment()
S
51 5 26
get_display_items()
S
58 5 14
get_localized_params()
S
45 3 40
process_change_payment_method_request()
S
55 4 19
get_saved_source_id()
S
62 5 10
save_zero_total_meta()
S
58 4 15
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
61 3 12
update_failing_payment_method()
S
62 3 12
process_refund()
S
57 2 18
payment_fields()
S
58 2 17
get_generic_error()
S
67 3 7
banner_checkout_enabled()
S
73 3 4
get_payment_source()
S
66 3 10
set_payment_save_error()
S
64 3 9
get_token()
S
64 3 9
get_new_source_token()
S
76 3 3
create_payment_method()
S
62 2 12
init_supports()
S
58 1 19
__construct()
S
56 1 18
create_customer()
S
64 2 10
set_order_lock()
S
73 2 4
is_mandate_required()
S
74 2 4
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
validate_payment_sections_field()
S
72 2 6
order_contains_pre_order()
S
79 2 3
enqueue_mini_cart_scripts()
S
65 2 8
get_payment_intent_id()
S
77 2 3
hooks()
S
60 1 12
product_fields()
S
63 1 12
add_stripe_order_args()
S
91 1 2
has_enqueued_scripts()
S
82 1 3
get_shipping_method_id()
S
79 1 3
get_element_options()
S
74 1 4
get_display_item_for_product()
S
69 1 7
get_formatted_shipping_label()
S
79 1 3
get_payment_section_description()
S
73 1 5
set_post_payment_process()
S
80 1 3
get_display_item_for_order()
S
69 1 7
is_processing_scheduled_payment()
S
79 1 3
is_installment_available()
S
82 1 3
get_display_item_for_cart()
S
69 1 7
get_mini_cart_dependencies()
S
82 1 3
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_payment_method_styles()
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
save_order_meta()
S
63 1 10
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
get_save_payment_method_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
get_payment_token_type()
S
82 1 3