WC_Gateway_Afterpay_Base D

Total Complexity 178
Dependencies 5
Dependents 0
Total lines 1,244
Lines of code 858
Logical lines of code 558
Comment lines 240
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
process_payment()
D
6
85 394
is_available()
B
46 17 36
payment_fields()
A
35 10 100
validate_fields()
A
50 10 28
validate_afterpay_bankaccount()
A
46 8 37
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
order_status_change_callback()
S
63 5 11
get_afterpay_tax_class()
S
59 4 15
admin_options()
S
47 1 59
get_connection_mode()
S
63 3 11
get_all_shipping_methods()
S
62 3 11
send_afterpay_debug_mail()
S
73 2 5
get_all_possible_order_statuses()
S
65 2 9
calculate_afterpay_vat_amount()
S
69 1 6
receipt_page()
S
78 1 3
__construct()
S
74 1 5