WC_Gateway_Swedbank_Pay_Checkout D

Total Complexity 384
Dependencies 22
Dependents 1
Total lines 3,271
Lines of code 2,175
Logical lines of code 977
Comment lines 657
Methods 56
Properties 27

Methods 56

Method Rating Maintainability Complexity Lines of code
process_payment()
D
21
36 232
__construct()
D
26
34 145
get_instant_capture_items()
D
26
31 168
process_refund()
C
28
20 143
checkout_get_value()
C
36 23 77
payment_scripts()
B
31 16 134
payment_confirm()
B
33 17 101
return_handler()
B
36 18 80
ajax_swedbank_pay_update_order()
B
38 16 65
init_form_fields()
B
27
6 205
get_consumer_profile()
A
38 14 73
ajax_swedbank_pay_checkout_get_address()
A
45 8 35
maybe_capture_instantly()
A
49 8 30
get_remote_address()
A
45 7 44
update_address()
A
46 7 35
swedbank_card_store()
S
46 6 39
validate_subscription_payment_meta()
S
54 7 20
init_order()
S
43 5 49
process_recurring_payment()
S
43 4 57
add_subscription_card_id()
S
55 6 19
save_subscription_payment_meta()
S
59 6 14
filter_gateways()
S
60 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
lock_checkout_fields()
S
60 5 12
wcs_cart_have_subscription()
S
61 5 12
capture_payment()
S
53 4 24
ajax_swedbank_pay_checkout_log_error()
S
55 4 19
override_template()
S
60 4 13
before_checkout_billing_form()
S
51 3 26
instant_capture()
S
53 3 23
cancel_payment()
S
56 3 20
add_payment_method()
S
48 2 34
woocommerce_checkout_payment()
S
61 3 13
ajax_swedbank_pay_checkout_customer_profile()
S
61 3 11
ajax_swedbank_pay_checkin()
S
62 3 10
update_consumer_profile()
S
62 2 11
drop_consumer_profile()
S
63 2 11
update_consumer_address()
S
68 2 7
order_contains_subscription()
S
71 2 6
wcs_is_subscription_product()
S
75 2 4
wcs_is_payment_change()
S
75 2 4
payment_fields()
S
68 2 8
ajax_swedbank_pay_place_order()
S
62 1 11
add_subscription_payment_meta()
S
63 1 11
delete_resubscribe_meta()
S
80 1 3
admin_options()
S
78 1 4
checkout_form_shipping()
S
78 1 3
update_failing_payment_method()
S
80 1 3
validate_fields()
S
91 1 2
checkout_init()
S
75 1 4
save_refund_parameters()
S
80 1 3
checkout_form_billing()
S
65 1 10
get_post_id_by_meta()
S
65 1 10
thankyou_page()
S
81 1 3