WC_Gateway_Swedbank_Pay_Checkout D

Total Complexity 271
Dependencies 24
Dependents 3
Total lines 2,464
Lines of code 1,571
Logical lines of code 731
Comment lines 533
Methods 43
Properties 27

Methods 43

Method Rating Maintainability Complexity Lines of code
__construct()
C
28
28 130
process_payment()
C
28
25 142
process_refund()
C
28
22 142
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 87
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
override_template()
S
55 5 20
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
update_consumer_profile()
S
62 2 11
drop_consumer_profile()
S
63 2 11
wcs_is_payment_change()
S
75 2 4
payment_fields()
S
68 2 8
wcs_is_subscription_product()
S
75 2 4
order_contains_subscription()
S
71 2 6
update_consumer_address()
S
68 2 7
add_subscription_payment_meta()
S
63 1 11
validate_fields()
S
91 1 2
update_failing_payment_method()
S
80 1 3
delete_resubscribe_meta()
S
80 1 3
save_refund_parameters()
S
80 1 3
thankyou_page()
S
81 1 3
get_post_id_by_meta()
S
65 1 10
admin_options()
S
78 1 4