WC_Gateway_Afterpay_Base D

Total Complexity 216
Dependencies 5
Dependents 0
Total lines 1,535
Lines of code 1,077
Logical lines of code 634
Comment lines 283
Methods 27
Properties 0

Methods 27

Method Rating Maintainability Complexity Lines of code
process_payment()
D
7
82 393
is_available()
B
46 17 36
get_introduction_text()
A
41 13 57
payment_fields()
A
38 9 81
get_selling_points()
A
41 10 60
get_bankaccount_placeholder()
A
49 10 34
validate_fields()
A
52 9 23
validate_afterpay_bankaccount()
A
47 8 36
process_refund()
A
41 6 56
split_afterpay_address()
A
52 8 25
get_afterpay_client_ip()
S
61 7 11
capture_afterpay_payment()
S
47 4 36
can_show_introduction_text()
S
69 6 6
order_status_change_callback()
S
63 5 11
get_afterpay_tax_class()
S
59 4 15
admin_options()
S
47 1 59
get_all_shipping_methods()
S
62 3 11
get_connection_mode()
S
63 3 11
render_payment_terms_script()
S
55 1 31
render_privacy_policy_script()
S
55 1 31
send_afterpay_debug_mail()
S
73 2 5
get_all_possible_order_statuses()
S
65 2 9
render_privacy_policy_modal()
S
61 1 13
render_payment_terms_modal()
S
61 1 13
receipt_page()
S
78 1 3
calculate_afterpay_vat_amount()
S
69 1 6
__construct()
S
74 1 5