WC_Payment_Gateway_Revolut D

Total Complexity 263
Dependencies 13
Dependents 0
Total lines 1,745
Lines of code 1,011
Logical lines of code 580
Comment lines 423
Methods 54
Properties 12

Methods 54

Method Rating Maintainability Complexity Lines of code
payment_fields()
B
37 15 80
blocks_checkout_processor()
A
39 14 68
save_payment_method()
A
41 15 50
process_payment()
A
41 13 56
process_refund()
A
43 13 42
woocommerce_checkout_revolut_order_processed()
A
48 11 29
save_payment_token_to_order()
A
49 11 29
check_revolut_payment_result()
A
51 11 27
woocommerce_order_validator()
A
41 9 54
normalize_payment_methods()
A
51 9 26
get_confirmation_page_promotional_banners()
A
45 8 40
order_action_from_woocommerce()
A
52 9 22
sync_order_state()
A
51 8 30
maybe_cancel_previous_wc_order()
A
54 8 20
save_shipments_information()
A
49 7 31
add_payment_method()
S
50 7 27
process_blocks_payment()
S
55 7 19
wc_revolut_get_current_page()
S
57 6 19
blocks_loaded()
S
57 6 16
searchListKeyValue()
S
61 6 12
handle_revolut_order_result()
S
53 5 24
wc_revolut_enqueue_scripts()
S
61 5 13
maybe_attach_revolut_customer_to_subscription_order_with_guest_user()
S
59 4 14
checkout_return()
S
59 3 16
wc_revolut_get_current_order_id()
S
65 4 9
handle_blocks_saved_payment_method()
S
60 3 13
__construct()
S
51 2 24
get_informational_banner_data()
S
55 2 19
wc_revolut_get_current_order_key()
S
65 3 10
wc_revolut_get_checkout_payment_url()
S
65 3 10
update_payment_request_method_title()
S
64 3 10
remove_all_payment_tokens()
S
66 3 9
maybe_save_payment_method()
S
64 3 10
points_banner_available()
S
71 3 6
enqueue_common_standard_scripts()
S
50 1 29
enqueue_express_checkout_scripts()
S
60 1 17
add_default_options()
S
67 2 8
check_payment_processed()
S
74 2 5
get_mode()
S
78 2 3
plugin_options_updated()
S
65 2 10
get_revolut_order()
S
62 1 13
revolut_plugin_public_query_vars()
S
77 1 3
init_supports()
S
75 1 5
get_icon()
S
91 1 2
generate_inline_revolut_form()
S
82 1 3
save_payment_method_checkbox()
S
82 1 3
save_payment_method_requested()
S
82 1 3
display_update_subs_payment_checkout()
S
82 1 3
handle_add_payment_method()
S
82 1 3
clear_temp_session()
S
74 1 4
admin_nav_tab()
S
76 1 4
check_currency_support()
S
79 1 3
currency_support_error()
S
79 1 3
generate_customer_id()
S
81 1 3