WC_Gateway_Braintree D

Total Complexity 194
Dependencies 13
Dependents 0
Total lines 1,899
Lines of code 895
Logical lines of code 383
Comment lines 621
Methods 57
Properties 14

Methods 57

Method Rating Maintainability Complexity Lines of code
process_payment()
C
35 25 73
get_order()
B
44 17 38
get_order_meta()
A
51 11 24
admin_options()
A
39 2 130
get_connect_url()
A
46 8 38
is_name_dynamic_descriptor_valid()
S
54 7 21
generate_braintree_auth_html()
S
41 3 81
filter_admin_options()
S
48 6 33
should_tokenize_with_or_after_sale()
S
59 7 13
get_method_form_fields()
S
39 1 76
generate_merchant_account_ids_html()
S
50 4 30
is_configured()
S
64 6 9
is_phone_dynamic_descriptor_valid()
S
59 5 15
add_transaction_data()
S
62 5 12
add_shared_settings_form_fields()
S
52 4 25
get_customer_id()
S
56 4 17
is_payment_form_page()
S
76 5 3
get_merchant_id()
S
65 5 9
get_transaction_url()
S
60 4 13
should_tokenize_before_sale()
S
62 4 11
generate_merchant_account_id_html()
S
51 2 27
get_api()
S
52 2 26
enqueue_admin_scripts()
S
64 3 9
get_environment()
S
67 3 8
get_merchant_account_id()
S
68 3 7
get_private_key()
S
70 3 6
get_public_key()
S
70 3 6
should_tokenize_apple_pay_card()
S
68 3 7
ajax_get_client_token()
S
61 2 12
get_order_for_refund()
S
68 2 7
can_connect()
S
78 2 3
is_connected_manually()
S
78 2 3
is_apple_pay()
S
74 2 4
is_test_environment()
S
71 2 6
get_apple_pay_payment_data()
S
64 2 9
validate_payment_nonce()
S
67 2 7
enqueue_gateway_assets()
S
67 2 7
get_guest_customer_id()
S
71 2 6
get_url_dynamic_descriptor()
S
82 1 3
get_transaction_type()
S
80 1 3
get_name_dynamic_descriptor()
S
82 1 3
get_phone_dynamic_descriptor()
S
82 1 3
get_braintree_environments()
S
77 1 3
__construct()
S
74 1 4
get_auth_merchant_id()
S
79 1 3
get_auth_environment()
S
79 1 3
get_auth_access_token()
S
82 1 3
supports_credit_card_charge_virtual()
S
80 1 3
is_paypal_gateway()
S
80 1 3
is_connected()
S
76 1 4
get_disconnect_url()
S
74 1 4
build_payment_tokens_handler()
S
80 1 3
tokenize_with_sale()
S
82 1 3
get_capture_handler()
S
75 1 4
load_settings()
S
72 1 5
get_admin_params()
S
82 1 3
mark_order_as_refunded()
S
75 1 4