WC_Payments_Payment_Request_Button_Handler D

Total Complexity 313
Dependencies 27
Dependents 2
Total lines 1,762
Lines of code 1,053
Logical lines of code 557
Comment lines 442
Methods 50
Properties 3

Methods 50

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_price()
A
44 16 40
get_product_data()
A
38 14 66
is_product_supported()
A
47 16 33
ajax_pay_for_order()
A
44 14 42
has_allowed_items_in_cart()
A
51 14 22
scripts()
A
36 9 83
get_shipping_options()
A
42 11 50
get_normalized_state_from_pr_states()
A
55 9 18
normalize_state()
A
59 9 13
calculate_shipping()
A
45 7 43
tokenized_cart_store_api_address_normalization()
A
51 8 27
tokenized_cart_set_payment_method_type()
A
51 8 26
filter_gateway_title()
A
56 8 17
display_pay_for_order_page_html()
S
45 6 44
init()
S
45 6 42
validate_state()
S
53 7 22
has_subscription_product()
S
58 7 17
maybe_restore_recurring_chosen_shipping_methods()
S
57 7 15
add_order_meta()
S
55 6 18
get_option_is_apple_pay_enabled()
S
62 5 11
is_account_creation_possible()
S
62 5 11
is_authentication_required()
S
65 5 9
set_session()
S
65 5 9
ajax_create_order()
S
59 4 15
get_normalized_state_from_wc_states()
S
62 4 11
handle_payment_request_redirect()
S
61 4 11
get_login_confirmation_settings()
S
57 3 17
build_shipping_methods()
S
59 3 15
get_normalized_state()
S
64 4 10
ajax_update_shipping_method()
S
57 3 15
transform_prb_address_state_data()
S
63 3 11
transform_prb_address_postcode_data()
S
63 3 11
get_current_order()
S
64 3 11
ajax_get_cart_details()
S
63 3 11
ajax_get_shipping_options()
S
56 2 18
update_shipping_method()
S
65 3 9
filter_cart_needs_shipping_address()
S
70 3 6
maybe_skip_postcode_validation()
S
65 3 9
get_normalized_postal_code()
S
65 3 9
get_taxes_like_cart()
S
66 3 8
supported_product_types()
S
59 1 17
get_login_redirect_url()
S
66 2 8
is_normalized_state()
S
74 2 4
get_button_settings()
S
63 2 9
display_payment_request_button_html()
S
68 2 10
get_cart_data()
S
72 2 6
sanitize_string()
S
79 1 3
__construct()
S
74 1 5