WC_Braintree_Payment_Gateway D

Total Complexity 438
Dependencies 18
Dependents 9
Total lines 2,824
Lines of code 1,739
Logical lines of code 875
Comment lines 788
Methods 130
Properties 20

Methods 130

Method Rating Maintainability Complexity Lines of code
add_order_line_items()
C
31 21 117
process_payment()
B
36 16 77
add_payment_method()
A
37 14 75
get_display_items_for_cart()
A
43 16 42
get_display_items_for_recurring_cart()
A
43 15 43
output_display_items()
A
40 13 57
process_subscription_payment()
A
41 9 56
needs_shipping()
A
55 11 19
get_display_items()
A
52 10 22
process_refund()
A
44 8 42
enqueue_frontend_scripts()
A
56 9 18
save_order_meta()
A
49 8 28
pre_order_before_process_order()
A
53 8 23
create_braintree_subscription()
A
44 6 47
get_display_items_for_order()
S
48 7 30
subscription_payment_method_updated()
S
51 7 25
get_shipping_packages()
S
56 7 17
should_save_payment_method()
S
63 8 9
save_zero_total_order_meta()
S
53 6 22
process_change_payment_request()
S
53 6 22
change_subscription_payment_method()
S
48 5 32
wcs_before_process_order()
S
64 7 8
get_formatted_shipping_methods()
S
58 6 14
cart_contains_trial_period_subscription()
S
62 6 12
get_order_meta_data()
S
54 5 22
capture_transaction_from_status()
S
62 6 10
void_transaction_from_status()
S
58 5 15
filter_address_state()
S
62 6 10
payment_complete_actions()
S
58 5 14
wcs_braintree_before_process_order()
S
60 5 12
process_pre_order_payment()
S
51 4 26
record_transaction()
S
54 4 21
process_shop_subscription_meta()
S
58 4 15
use_saved_method()
S
63 5 9
capture_charge()
S
50 3 29
add_order_descriptors()
S
59 4 14
get_descriptors()
S
60 4 13
deprecated_subscription_check()
S
61 4 11
init_form_fields()
S
56 3 19
add_order_general_args()
S
55 3 19
void_charge()
S
55 3 19
cancel_braintree_subscription()
S
56 3 18
get_token()
S
56 3 17
maybe_enqueue_checkout_scripts()
S
72 4 5
get_order_total()
S
64 4 9
generate_client_token()
S
59 3 14
delete_payment_method()
S
59 3 14
fetch_transaction()
S
59 3 14
do_post_payment_processing()
S
67 3 8
available_payment_gateways()
S
63 3 10
pre_order_with_payment_later()
S
75 3 4
get_payment_method_token()
S
68 3 8
get_payment_method_nonce()
S
70 3 6
format_order_line_item()
S
65 3 9
payment_fields()
S
61 2 13
get_localized_standard_params()
S
50 1 27
get_payment_token()
S
61 2 12
get_transaction_url()
S
62 2 11
get_product_admin_options()
S
53 1 24
set_supports()
S
56 1 22
generate_button_demo_html()
S
58 1 17
__construct()
S
58 1 16
add_order_customer_id()
S
70 2 6
get_locale()
S
69 2 7
get_shipping_method_id()
S
77 2 3
validate_fields()
S
72 2 5
banner_checkout_enabled()
S
73 2 4
get_payment_method_formats()
S
69 2 7
create_customer()
S
79 2 3
is_change_payment_request()
S
79 2 3
token_exists()
S
66 2 7
update_failing_payment_method()
S
64 2 10
enqueue_mini_cart_scripts()
S
63 2 10
get_device_data()
S
73 2 5
add_order_device_data()
S
71 2 6
connect()
S
65 2 8
pre_update_payment_method()
S
74 2 5
get_config_data()
S
68 2 7
add_hooks()
S
58 1 14
add_order_shipping_address()
S
60 1 13
add_order_billing_address()
S
60 1 13
subscription_payment_meta()
S
63 1 11
admin_options()
S
66 1 8
get_formatted_shipping_method()
S
91 1 2
add_order_shipping_amount()
S
76 1 4
get_customer_attributes()
S
66 1 9
set_payment_method_token()
S
81 1 3
set_payment_method_nonce()
S
81 1 3
is_available()
S
79 1 3
has_enqueued_scripts()
S
82 1 3
set_product_gateway_option()
S
81 1 3
update_shipping_error()
S
82 1 3
enqueue_product_scripts()
S
91 1 2
get_display_items_for_subscription()
S
82 1 3
enqueue_cart_scripts()
S
91 1 2
enqueue_add_payment_method_scripts()
S
81 1 3
enqueue_checkout_scripts()
S
91 1 2
get_display_item_for_product()
S
82 1 3
enqueue_admin_scripts()
S
91 1 2
get_display_item_for_order()
S
82 1 3
get_display_item_for_cart()
S
82 1 3
cart_fields()
S
72 1 5
get_order_id()
S
78 1 3
update_shipping_response()
S
82 1 3
update_shipping_method_response()
S
82 1 3
mini_cart_fields()
S
74 1 4
remove_session_checkout_vars()
S
91 1 2
banner_fields()
S
91 1 2
cart_checkout_enabled()
S
78 1 3
product_checkout_enabled()
S
78 1 3
mini_cart_enabled()
S
78 1 3
is_cart_checkout_enabled()
S
78 1 3
add_subscription_options()
S
68 1 7
get_subscription_options()
S
70 1 6
add_to_cart_response()
S
82 1 3
update_shipping_address_response()
S
82 1 3
get_token_type()
S
79 1 3
get_payment_section_description()
S
75 1 4
get_payment_method_from_transaction()
S
100 1 0
get_new_method_label()
S
79 1 3
get_saved_method_label()
S
79 1 3
get_checkout_currency()
S
81 1 3
order_success_result()
S
71 1 6
order_error_result()
S
69 1 7
perform_kount_actions()
S
78 1 3
add_order_options()
S
66 1 8
get_order_options()
S
66 1 8
output_checkout_fields()
S
91 1 2
product_fields()
S
72 1 5
init()
S
66 1 7