WC_Payment_Gateway_Stripe D

Total Complexity 320
Dependencies 26
Dependents 16
Total lines 2,102
Lines of code 1,180
Logical lines of code 608
Comment lines 659
Methods 112
Properties 25

Methods 112

Method Rating Maintainability Complexity Lines of code
output_display_items()
B
39 16 57
get_formatted_shipping_methods()
A
46 15 35
get_display_items_for_cart()
A
49 12 26
show_save_payment_method_html()
A
52 11 24
process_payment()
A
46 10 37
enqueue_frontend_scripts()
A
51 10 29
save_payment_method()
A
46 9 38
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
get_localized_params()
S
40 5 57
capture_charge()
S
50 6 29
get_formatted_shipping_method()
S
56 6 18
process_pre_order()
S
51 5 27
process_pre_order_payment()
S
51 5 26
create_payment_method()
S
57 5 18
payment_methods_list_item()
S
57 5 15
get_display_items()
S
58 5 14
process_subscription_payment_method_updated()
S
54 4 20
save_zero_total_meta()
S
58 4 15
get_saved_source_id()
S
62 5 10
process_zero_total_order()
S
60 4 13
get_complete_payment_return_url()
S
54 3 23
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 19
payment_fields()
S
58 2 17
banner_checkout_enabled()
S
73 3 4
get_payment_source()
S
66 3 10
get_new_source_token()
S
76 3 3
set_payment_save_error()
S
64 3 9
get_generic_error()
S
67 3 7
get_element_options()
S
60 2 14
init_supports()
S
58 1 19
__construct()
S
56 1 18
order_contains_pre_order()
S
79 2 3
subscription_payment_meta()
S
59 1 15
is_change_payment_method_request()
S
79 2 3
set_order_lock()
S
73 2 4
release_order_lock()
S
78 2 3
has_order_lock()
S
74 2 4
create_customer()
S
64 2 10
validate_payment_sections_field()
S
72 2 6
is_mandate_required()
S
74 2 4
get_payment_method_formats()
S
66 2 9
trigger_post_payment_processes()
S
73 2 5
get_payment_method_charge_type()
S
77 2 3
get_payment_intent_id()
S
77 2 3
get_transaction_url()
S
67 2 8
enqueue_mini_cart_scripts()
S
65 2 8
product_fields()
S
63 1 12
hooks()
S
60 1 12
get_request_context()
S
82 1 3
get_order_status_option()
S
79 1 3
get_setup_intent()
S
82 1 3
set_setup_intent()
S
81 1 3
get_payment_token_type()
S
82 1 3
get_display_item_for_order()
S
69 1 7
add_stripe_order_args()
S
91 1 2
is_installment_available()
S
82 1 3
get_display_item_for_cart()
S
69 1 7
get_payment_section_description()
S
73 1 5
has_enqueued_scripts()
S
82 1 3
is_processing_scheduled_payment()
S
79 1 3
get_mini_cart_dependencies()
S
82 1 3
get_formatted_shipping_label()
S
79 1 3
get_shipping_method_id()
S
79 1 3
get_display_item_for_product()
S
69 1 7
process_change_payment_method_request()
S
80 1 3
get_update_shipping_address_response()
S
79 1 3
set_post_payment_process()
S
80 1 3
enqueue_add_payment_method_scripts()
S
81 1 3
retrieve_charge()
S
80 1 3
get_payment_method_from_charge()
S
80 1 3
save_order_meta()
S
63 1 10
get_payment_element_options()
S
82 1 3
enqueue_product_scripts()
S
91 1 2
enqueue_cart_scripts()
S
91 1 2
enqueue_checkout_scripts()
S
91 1 2
get_payment_method_from_request()
S
81 1 3
enqueue_payment_method_styles()
S
75 1 4
mini_cart_fields()
S
74 1 4
cart_fields()
S
72 1 5
enqueue_admin_scripts()
S
91 1 2
get_method_formats()
S
81 1 3
init_form_fields()
S
67 1 7
get_order_error()
S
69 1 6
get_new_source_id()
S
81 1 3
pre_order_requires_tokenization()
S
80 1 3
mini_cart_enabled()
S
78 1 3
get_order_description()
S
77 1 3
set_new_source_token()
S
81 1 3
set_payment_method_token()
S
81 1 3
get_token()
S
71 1 6
get_update_shipping_method_response()
S
82 1 3
add_to_cart_response()
S
82 1 3
cart_checkout_enabled()
S
78 1 3
delete_payment_method()
S
82 1 3
product_checkout_enabled()
S
78 1 3
get_shipping_methods()
S
81 1 3
show_save_source()
S
82 1 3
get_save_payment_method_label()
S
79 1 3
get_saved_methods_label()
S
79 1 3
get_new_method_label()
S
79 1 3
saved_payment_methods()
S
67 1 9
set_request_context()
S
81 1 3