PeachPay_Payment_Gateway D

Total Complexity 182
Dependencies 7
Dependents 2
Total lines 1,372
Lines of code 845
Logical lines of code 285
Comment lines 364
Methods 46
Properties 18

Methods 46

Method Rating Maintainability Complexity Lines of code
is_available()
C
42 29 41
get_supported_countries()
A
50 17 27
get_supported_currencies()
A
50 17 27
calculate_payment_method_fee()
A
47 13 34
validate_fields()
A
49 10 29
get_order_details()
S
38 3 78
payment_fields()
S
53 5 26
currency_filter_settings()
S
48 4 35
country_filter_setting()
S
48 4 35
get_order_line_items()
S
57 5 15
get_maximum_charge()
S
61 5 14
get_fallback_currency()
S
61 5 12
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
register_feature()
S
57 3 15
add_payment_meta()
S
67 4 8
get_minimum_charge()
S
65 3 11
custom_min_amount_settings()
S
54 2 20
__construct()
S
56 2 20
get_customer_ip()
S
64 3 10
hooks()
S
58 2 15
get_customer_user_agent()
S
64 3 10
admin_options()
S
52 1 28
payment_field_powered_by_notice()
S
63 2 12
get_icon()
S
62 2 11
payment_field_test_mode_notice()
S
65 2 11
active_locations_setting()
S
58 1 17
should_refresh_checkout()
S
69 2 7
process_payment()
S
63 2 10
get_payment_description()
S
68 2 7
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
enqueue_admin_scripts()
S
98 1 1
enqueue_checkout_scripts()
S
98 1 1
payment_field_tokenize_error_notice()
S
83 1 5
get_protected()
S
70 1 8
get_settings_url()
S
79 1 3
action_needed_form()
S
98 1 1
get_callback_url()
S
79 1 3