WC_Gateway_Afterpay D

Total Complexity 420
Dependencies 21
Dependents 3
Total lines 2,539
Lines of code 1,627
Logical lines of code 884
Comment lines 674
Methods 81
Properties 7

Methods 81

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