WP_Gateway_Walletdoc D

Total Complexity 172
Dependencies 10
Dependents 0
Total lines 1,252
Lines of code 900
Logical lines of code 568
Comment lines 67
Methods 30
Properties 3

Methods 30

Method Rating Maintainability Complexity Lines of code
process_payment()
D
23
31 190
webhook()
C
37 25 59
capture_payment()
A
44 14 39
add_payment_method()
A
38 10 71
process_refund()
A
46 9 38
ensure_subscription_has_customer_id()
A
43 7 45
CombineSubscription()
A
46 7 37
payment_fields()
S
46 6 38
save_source_to_order()
S
58 6 15
maybe_render_subscription_payment_method()
S
52 5 24
addToken()
S
50 4 31
getDateDiff()
S
50 4 28
elements_form()
S
46 1 67
__construct()
S
42 2 50
validate_production_secret_field()
S
61 4 12
validate_client_secret_field()
S
61 4 12
prepare_source()
S
51 3 26
change_subs_payment_method()
S
55 3 20
isEmpty()
S
77 4 3
has_subscription()
S
77 4 3
get_localized_messages()
S
50 2 27
validate_walletdoc_signature()
S
60 3 12
scheduled_subscription_payment()
S
57 2 16
is_subs_change_payment()
S
78 2 3
wd_get_subscription_for_order()
S
68 2 7
are_keys_set()
S
68 2 7
is_available()
S
72 2 6
stringMatchMethod()
S
69 2 7
init_form_fields()
S
76 1 4
log()
S
80 1 3