WC_Payments_Payment_Request_Button_Handler D

Total Complexity 162
Dependencies 20
Dependents 0
Total lines 847
Lines of code 494
Logical lines of code 234
Comment lines 234
Methods 25
Properties 3

Methods 25

Method Rating Maintainability Complexity Lines of code
should_show_payment_request_button()
B
45 24 40
get_product_price()
A
44 16 40
get_product_data()
A
38 14 66
is_product_supported()
A
47 16 33
has_allowed_items_in_cart()
A
51 14 22
scripts()
A
39 5 67
filter_gateway_title()
A
56 8 17
has_subscription_product()
S
58 7 17
add_order_meta()
S
55 6 18
init()
S
52 5 23
get_option_is_apple_pay_enabled()
S
62 5 11
is_account_creation_possible()
S
62 5 11
set_session()
S
65 5 9
is_authentication_required()
S
65 5 9
handle_payment_request_redirect()
S
61 4 11
get_login_confirmation_settings()
S
57 3 17
get_current_order()
S
64 3 11
filter_cart_needs_shipping_address()
S
70 3 6
get_taxes_like_cart()
S
66 3 8
get_normalized_postal_code()
S
65 3 9
supported_product_types()
S
59 1 17
display_payment_request_button_html()
S
68 2 10
get_login_redirect_url()
S
66 2 8
get_button_settings()
S
63 2 9
__construct()
S
74 1 5