WC_Gateway_Afterpay D

Total Complexity 419
Dependencies 21
Dependents 3
Total lines 2,621
Lines of code 1,699
Logical lines of code 900
Comment lines 679
Methods 80
Properties 7

Methods 80

Method Rating Maintainability Complexity Lines of code
render_placement()
D
28
37 124
render_admin_notices()
C
35 25 84
fetch_express_shipping()
B
32 19 102
process_payment()
B
30 16 125
capture_payment()
B
40 16 54
generate_express_token()
B
35 14 83
integrityCheck()
A
38 12 71
is_product_supported()
A
46 13 36
init_user_agent()
A
51 12 22
collect_shipping_data()
A
48 10 31
render_express_checkout_on_cart_page()
A
46 8 40
create_order_and_capture_endpoint()
A
45 8 39
create_wc_order_from_cart()
A
43 7 47
express_error_handler()
A
48 7 37
capture_payment_express_checkout()
A
46 7 34
express_update_wc_shipping()
S
51 7 28
log()
S
52 7 25
get_category_names_by_product()
S
53 7 23
currency_is_supported()
S
56 7 18
is_available()
S
57 7 17
get_configuration()
S
51 6 26
render_product_messaging_block()
S
52 6 24
get_cart_placement_attributes()
S
52 6 23
filter_woocommerce_get_price_html()
S
59 6 14
immediate_payment_capture()
S
51 5 26
process_refund()
S
48 4 33
can_refund_order()
S
64 6 9
getOrderLimit()
S
59 5 13
order_products_are_supported()
S
61 5 12
render_schedule_on_cart_page()
S
63 5 11
cart_products_are_supported()
S
62 5 11
filter_woocommerce_gateway_icon()
S
55 4 23
shortcode_afterpay_paragraph()
S
56 4 19
get_country_code()
S
58 4 15
is_configured()
S
64 5 10
is_price_within_limits()
S
64 5 10
get_express_checkout_button_for_block()
S
51 3 29
get_ei_configs()
S
61 4 12
get_cart_item_categories()
S
61 4 12
get_checkout()
S
57 3 17
api_is_ok()
S
73 4 4
get_cart_item_skus()
S
63 4 10
get_js_locale()
S
58 3 15
cart_is_virtual()
S
65 4 10
frontend_is_ready()
S
71 4 6
payment_fields()
S
58 3 15
feature_is_available()
S
61 3 12
get_transaction_url()
S
62 3 11
__construct()
S
53 2 22
get_mpid()
S
73 3 4
express_is_enabled()
S
72 3 5
print_info_for_listed_products()
S
68 3 7
print_info_for_product_detail_page()
S
68 3 7
extend_store_api()
S
60 2 14
name_split()
S
60 2 14
reset_settings_api_form_fields()
S
55 1 21
get_static_url()
S
68 2 7
get_merchant_id()
S
71 2 6
cart_is_within_limits()
S
72 2 5
refresh_cached_configuration()
S
73 2 5
prices_within_limits()
S
68 2 8
getInstance()
S
72 2 6
get_secret_key()
S
71 2 6
extend_cart_item_schema()
S
64 1 12
get_api_env()
S
80 1 3
admin_options()
S
69 1 9
add_afterpay_gateway()
S
77 1 4
get_product_from_the_post()
S
73 1 5
is_valid_for_use()
S
69 1 7
cart_total_is_positive()
S
80 1 3
generate_source_sets()
S
66 1 8
getOrderLimitMin()
S
80 1 3
getOrderLimitMax()
S
80 1 3
is_enabled()
S
80 1 3
init_merchant_account()
S
71 1 6
render_cart_messaging_block()
S
75 1 4
init_form_fields()
S
79 1 3
getSettings()
S
82 1 3
extend_cart_item_data()
S
65 1 9
process_admin_options()
S
72 1 5