WC_Gateway_Swedbank_Pay_Checkout D

Total Complexity 267
Dependencies 26
Dependents 3
Total lines 2,436
Lines of code 1,563
Logical lines of code 707
Comment lines 527
Methods 43
Properties 27

Methods 43

Method Rating Maintainability Complexity Lines of code
__construct()
C
28
28 130
process_payment()
C
29
25 140
process_refund()
C
28
20 143
payment_confirm()
B
34 16 96
return_handler()
B
37 17 75
get_consumer_profile()
A
38 14 73
init_form_fields()
A
28
6 176
ajax_check_payment()
A
40 12 62
payment_scripts()
A
37 8 86
thankyou_scripts()
A
45 9 40
get_remote_address()
A
45 7 44
update_address()
A
46 7 35
payment_method_title()
S
52 7 24
swedbank_card_store()
S
46 6 39
validate_subscription_payment_meta()
S
54 7 20
process_recurring_payment()
S
43 4 57
add_subscription_card_id()
S
55 6 19
save_subscription_payment_meta()
S
59 6 14
scheduled_subscription_payment()
S
52 5 25
maybe_render_subscription_payment_method()
S
56 5 19
save_new_payment_method_option_html()
S
56 5 17
wcs_cart_have_subscription()
S
61 5 12
capture_payment()
S
53 4 24
ajax_swedbank_pay_checkout_log_error()
S
55 4 19
process_admin_options()
S
57 4 16
cancel_payment()
S
56 3 20
add_payment_method()
S
48 2 34
override_template()
S
60 3 14
drop_consumer_profile()
S
63 2 11
update_consumer_profile()
S
62 2 11
order_contains_subscription()
S
71 2 6
wcs_is_subscription_product()
S
75 2 4
wcs_is_payment_change()
S
75 2 4
update_consumer_address()
S
68 2 7
payment_fields()
S
68 2 8
add_subscription_payment_meta()
S
63 1 11
get_post_id_by_meta()
S
65 1 10
update_failing_payment_method()
S
80 1 3
delete_resubscribe_meta()
S
80 1 3
validate_fields()
S
91 1 2
save_refund_parameters()
S
80 1 3
thankyou_page()
S
81 1 3
admin_options()
S
78 1 4