PeachPay_Payment_Gateway D

Total Complexity 180
Dependencies 9
Dependents 4
Total lines 1,434
Lines of code 883
Logical lines of code 299
Comment lines 381
Methods 47
Properties 19

Methods 47

Method Rating Maintainability Complexity Lines of code
is_available()
C
35 27 81
get_supported_currencies()
A
50 17 27
get_supported_countries()
A
50 17 27
calculate_payment_method_fee()
A
48 10 31
validate_fields()
A
50 10 26
get_order_details()
A
37 4 83
payment_fields()
A
50 7 33
country_filter_setting()
S
48 4 35
currency_filter_settings()
S
48 4 35
get_order_line_items()
S
57 5 15
get_maximum_charge()
S
61 5 14
fee_settings()
S
43 1 58
get_icon_url()
S
62 4 12
custom_max_amount_settings()
S
52 3 25
payment_method_form()
S
54 3 24
default_currency_setting()
S
53 3 23
display_fallback_currency_option_message()
S
50 2 37
get_fallback_currency()
S
64 4 9
add_payment_meta()
S
67 4 8
get_payment_description()
S
63 3 11
get_minimum_charge()
S
65 3 11
custom_min_amount_settings()
S
54 2 21
__construct()
S
56 2 20
get_customer_user_agent()
S
64 3 10
get_customer_ip()
S
64 3 10
admin_options()
S
53 1 27
payment_field_powered_by_notice()
S
65 2 12
get_icon()
S
62 2 11
payment_field_test_mode_notice()
S
65 2 11
active_locations_setting()
S
58 1 17
hooks()
S
64 2 9
should_refresh_checkout()
S
69 2 7
is_change_payment_method_request()
S
79 2 3
process_payment()
S
63 2 10
get_title_filter()
S
71 2 6
prepare_payment_result()
S
58 1 15
enabled_setting()
S
60 1 14
gateway_title_setting()
S
62 1 13
get_settings_breadcrumbs()
S
63 1 11
action_needed_form()
S
98 1 1
payment_field_tokenize_error_notice()
S
83 1 5
enqueue_admin_scripts()
S
98 1 1
get_protected()
S
70 1 8
register_feature()
S
65 1 9
get_settings_url()
S
79 1 3
enqueue_checkout_scripts()
S
98 1 1
get_callback_url()
S
79 1 3