WC_Payments_Payment_Request_Button_Handler D

Total Complexity 279
Dependencies 24
Dependents 2
Total lines 1,524
Lines of code 912
Logical lines of code 484
Comment lines 387
Methods 45
Properties 3

Methods 45

Method Rating Maintainability Complexity Lines of code
should_show_payment_request_button()
B
45 24 40
ajax_get_selected_product_data()
B
35 20 76
get_product_data()
A
38 14 66
get_product_price()
A
45 15 40
is_product_supported()
A
51 16 23
ajax_pay_for_order()
A
44 14 42
has_allowed_items_in_cart()
A
51 14 22
get_shipping_options()
A
42 11 50
get_normalized_state_from_pr_states()
A
55 9 18
calculate_shipping()
A
45 7 43
normalize_state()
A
59 9 13
display_pay_for_order_page_html()
S
45 6 44
validate_state()
S
53 7 22
has_subscription_product()
S
58 7 16
maybe_restore_recurring_chosen_shipping_methods()
S
57 7 15
filter_gateway_title()
S
59 7 14
scripts()
S
41 4 55
add_order_meta()
S
55 6 18
init()
S
50 4 27
is_account_creation_possible()
S
62 5 11
get_option_is_apple_pay_enabled()
S
62 5 11
set_session()
S
65 5 9
is_authentication_required()
S
65 5 9
ajax_create_order()
S
59 4 15
handle_payment_request_redirect()
S
61 4 11
get_normalized_state_from_wc_states()
S
62 4 11
get_login_confirmation_settings()
S
57 3 17
get_normalized_state()
S
64 4 10
ajax_update_shipping_method()
S
57 3 15
build_shipping_methods()
S
59 3 15
get_current_order()
S
64 3 11
ajax_get_cart_details()
S
63 3 11
ajax_get_shipping_options()
S
56 2 18
get_taxes_like_cart()
S
66 3 8
filter_cart_needs_shipping_address()
S
70 3 6
get_normalized_postal_code()
S
65 3 9
update_shipping_method()
S
65 3 9
supported_product_types()
S
59 1 17
get_button_settings()
S
63 2 9
is_normalized_state()
S
74 2 4
get_cart_data()
S
72 2 6
display_payment_request_button_html()
S
68 2 10
get_login_redirect_url()
S
66 2 8
sanitize_string()
S
79 1 3
__construct()
S
74 1 5