WC_Gateway_Paystack D

Total Complexity 192
Dependencies 4
Dependents 0
Total lines 1,852
Lines of code 1,061
Logical lines of code 549
Comment lines 296
Methods 27
Properties 25

Methods 27

Method Rating Maintainability Complexity Lines of code
payment_scripts()
C
30 29 106
__construct()
B
38 17 64
process_token_payment()
B
33 14 101
process_webhooks()
A
37 14 73
init_form_fields()
A
26
2 226
verify_paystack_transaction()
A
37 12 72
get_custom_fields()
A
38 11 79
process_refund()
A
42 10 51
save_subscription_payment_token()
A
51 11 24
process_payment()
A
47 10 33
process_redirect_payment_option()
A
42 6 51
payment_fields()
S
60 7 13
save_card_details()
S
50 6 26
get_icon()
S
57 5 15
get_logo_url()
S
57 5 15
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_paystack_transaction()
S
58 3 15
is_autocomplete_order_enabled()
S
64 3 9
get_gateway_payment_channels()
S
67 3 7
order_contains_subscription()
S
77 3 3
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