WC_Gateway_Paystack D

Total Complexity 172
Dependencies 4
Dependents 0
Total lines 1,735
Lines of code 987
Logical lines of code 495
Comment lines 263
Methods 24
Properties 24

Methods 24

Method Rating Maintainability Complexity Lines of code
payment_scripts()
C
33 23 87
__construct()
B
38 17 64
verify_paystack_transaction()
A
36 13 80
process_token_payment()
A
35 12 81
init_form_fields()
A
26
2 226
process_webhooks()
A
38 12 65
get_custom_fields()
A
37 11 80
process_refund()
A
40 12 58
process_payment()
A
48 10 30
save_subscription_payment_token()
A
54 10 19
process_redirect_payment_option()
A
42 6 50
payment_fields()
S
60 7 13
save_card_details()
S
52 6 23
get_icon()
S
59 4 13
admin_scripts()
S
61 4 11
admin_options()
S
53 3 25
admin_notices()
S
64 4 9
is_available()
S
66 4 9
get_gateway_payment_channels()
S
64 3 11
is_autocomplete_order_enabled()
S
64 3 9
is_valid_for_use()
S
66 2 7
receipt_page()
S
62 2 10
add_payment_method()
S
75 1 4
is_wc_lt()
S
79 1 3