WC_Payment_Gateway_Revolut D

Total Complexity 216
Dependencies 7
Dependents 0
Total lines 1,329
Lines of code 797
Logical lines of code 458
Comment lines 343
Methods 46
Properties 6

Methods 46

Method Rating Maintainability Complexity Lines of code
save_payment_method()
B
39 18 56
handle_revolut_order_result()
B
44 19 39
payment_fields()
B
37 15 80
process_refund()
A
43 13 42
process_payment()
A
41 10 55
save_payment_token_to_order()
A
49 11 28
show_revolut_pay_register_banner()
A
46 9 36
update_payment_method_title()
A
49 9 29
order_action_from_woocommerce()
A
50 9 25
normalize_payment_methods()
A
52 8 23
woocommerce_checkout_revolut_order_processed()
S
47 6 37
maybe_cancel_previous_wc_order()
S
54 7 20
action_revolut_order()
S
59 7 13
verify_order_total()
S
52 6 23
wc_revolut_get_current_page()
S
57 6 19
searchListKeyValue()
S
61 6 12
add_payment_method()
S
52 5 25
save_wc_order_id()
S
52 4 24
admin_notices()
S
61 4 13
maybe_save_payment_method()
S
63 4 10
check_payment_processed()
S
68 4 6
wc_revolut_get_current_order_id()
S
65 4 9
wc_revolut_enqueue_scripts()
S
50 1 32
remove_all_payment_tokens()
S
66 3 9
insert_revolut_customer_id()
S
60 2 14
checkout_return()
S
62 2 12
wc_revolut_get_current_order_key()
S
68 2 8
check_currency_support()
S
71 2 6
maybe_pay_by_saved_method()
S
69 2 7
add_default_options()
S
67 2 8
__construct()
S
58 1 14
get_revolut_order()
S
62 1 13
admin_nav_tab()
S
76 1 4
init_scripts()
S
79 1 3
currency_support_error()
S
79 1 3
init_supports()
S
75 1 5
display_update_subs_payment_checkout()
S
82 1 3
clear_temp_session()
S
74 1 4
get_selected_payment_token()
S
82 1 3
handle_add_payment_method()
S
82 1 3
is_using_saved_payment_method()
S
82 1 3
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
pay_by_saved_method()
S
67 1 8