• Namespace
  • Class
  • Tree
  • Deprecated
  • Hook Reference

Namespaces

  • None
  • PaymentPlugins

Classes

  • Braintree_Gateway_Manager
  • WC_Braintree_3ds_Validation
  • WC_Braintree_Admin_Assets
  • WC_Braintree_Admin_List_Table_Subscriptions
  • WC_Braintree_Admin_Menus
  • WC_Braintree_Admin_Order_Metaboxes
  • WC_Braintree_Admin_Settings
  • WC_Braintree_Admin_User_Edit
  • WC_Braintree_Advanced_Fraud_Settings
  • WC_Braintree_Advanced_Settings_API
  • WC_Braintree_Alipay_Payment_Gateway
  • WC_Braintree_API_Settings
  • WC_Braintree_ApplePay_Payment_Gateway
  • WC_Braintree_Bancontact_Payment_Gateway
  • WC_Braintree_CC_Payment_Gateway
  • WC_Braintree_Condition_Evaluator
  • WC_Braintree_Context_Stack
  • WC_Braintree_Controller_3ds
  • WC_Braintree_Controller_ApplePay
  • WC_Braintree_Controller_Cart
  • WC_Braintree_Controller_Checkout
  • WC_Braintree_Controller_Client_Token
  • WC_Braintree_Controller_Data_Migration
  • WC_Braintree_Controller_Frontend
  • WC_Braintree_Controller_GooglePay
  • WC_Braintree_Controller_Kount
  • WC_Braintree_Controller_Local_Payment
  • WC_Braintree_Controller_Merchant_Accounts
  • WC_Braintree_Controller_Order_Actions
  • WC_Braintree_Controller_Payment_Tokens
  • WC_Braintree_Controller_PayPal
  • WC_Braintree_Controller_Plan
  • WC_Braintree_Controller_Product
  • WC_Braintree_Controller_Settings
  • WC_Braintree_Controller_Webhook
  • WC_Braintree_Customer_Manager
  • WC_Braintree_Deprecated_Filter_Hooks
  • WC_Braintree_Descriptor_Settings
  • WC_Braintree_EPS_Payment_Gateway
  • WC_Braintree_Fee_Settings
  • WC_Braintree_Field_Manager
  • WC_Braintree_Form_Handler
  • WC_Braintree_Frontend_Scripts
  • WC_Braintree_Giropay_Payment_Gateway
  • WC_Braintree_GooglePay_Payment_Gateway
  • WC_Braintree_IDEAL_Payment_Gateway
  • WC_Braintree_Install
  • WC_Braintree_Local_Payment_Gateway
  • WC_Braintree_Manager
  • WC_Braintree_Merchant_Account_Settings
  • WC_Braintree_Meta_Box_Coupons
  • WC_Braintree_Meta_Box_Subscription_Order_Data
  • WC_Braintree_MyBank_Payment_Gateway
  • WC_Braintree_P24_Payment_Gateway
  • WC_Braintree_Payment_Gateway
  • WC_Braintree_Payment_Method_Conversion
  • WC_Braintree_PayPal_Payment_Gateway
  • WC_Braintree_Post_Types
  • WC_Braintree_Product_Gateway_Option
  • WC_Braintree_Query
  • WC_Braintree_Rest_API
  • WC_Braintree_Rest_Controller
  • WC_Braintree_Rest_Webook_Authentication
  • WC_Braintree_Sepa_Payment_Gateway
  • WC_Braintree_Settings_API
  • WC_Braintree_Shortcode_Payment_Buttons
  • WC_Braintree_Shortcodes
  • WC_Braintree_Sofort_Payment_Gateway
  • WC_Braintree_Subscription
  • WC_Braintree_Subscription_Data_Store_CPT
  • WC_Braintree_Subscription_Settings
  • WC_Braintree_Subscriptions_Cart
  • WC_Braintree_Subscriptions_Checkout
  • WC_Braintree_Update
  • WC_Braintree_Venmo_Payment_Gateway
  • WC_Braintree_WeChat_Payment_Gateway
  • WC_Meta_Box_Braintree_Subscription_Data
  • WC_Payment_Token_Braintree
  • WC_Payment_Token_Braintree_ApplePay
  • WC_Payment_Token_Braintree_CC
  • WC_Payment_Token_Braintree_GooglePay
  • WC_Payment_Token_Braintree_Local_Payment
  • WC_Payment_Token_Braintree_PayPal
  • WC_Payment_Token_Braintree_Venmo
  • WC_Product_Braintree_Subscription
  • WC_Product_Braintree_Subscription_Variation
  • WC_Product_Braintree_Variable_Subscription
  • WCS_Braintree_Subscription_Controller

Traits

  • WC_Braintree_Controller_Cart_Trait
  • WC_Braintree_Settings_Trait

Functions

  • bfwc_add_body_class
  • bfwc_billing_periods_string
  • bfwc_can_delete_payment_method
  • bfwc_copy_address_from_order
  • bfwc_error_code_type_nicename
  • bfwc_get_combined_error_messages
  • bfwc_get_error_message
  • bfwc_get_error_messages
  • bfwc_get_gateway_timezone
  • bfwc_get_product_descriptors
  • bfwc_get_subscription_status_name
  • bfwc_get_subscription_statuses
  • bfwc_get_template
  • bfwc_get_timezones
  • bfwc_register_subscription_status
  • bfwc_subscription_length_string
  • bfwc_subscription_user_actions
  • bfwcs_billing_interval_string
  • bfwcs_billing_intervals
  • bfwcs_calculate_end_date
  • bfwcs_calculate_first_payment_date
  • bfwcs_calculate_next_payment_date
  • bfwcs_calculate_order_total
  • bfwcs_calculate_start_date
  • bfwcs_can_combine_subscriptions
  • bfwcs_cart_contains_subscriptions
  • bfwcs_cart_formatted_date
  • bfwcs_cart_recurring_total_html
  • bfwcs_cart_shipping_total
  • bfwcs_cart_subtotal_string
  • bfwcs_cart_tax_total_html
  • bfwcs_copy_order_meta
  • bfwcs_create_order_from_subscription
  • bfwcs_create_renewal_order
  • bfwcs_create_subscription
  • bfwcs_frontend_interval_string
  • bfwcs_get_currency_symbol
  • bfwcs_get_interval_string
  • bfwcs_get_length_string
  • bfwcs_get_period_string
  • bfwcs_get_plan_from_product
  • bfwcs_get_price_string
  • bfwcs_get_product_price_html
  • bfwcs_get_related_orders
  • bfwcs_get_subscription
  • bfwcs_get_subscription_actions
  • bfwcs_get_subscription_statuses
  • bfwcs_get_subscriptions_for_order
  • bfwcs_get_subscriptions_for_user
  • bfwcs_is_change_payment_method
  • bfwcs_is_pay_for_subscription_request
  • bfwcs_order_contains_subscription
  • bfwcs_order_is_subscription
  • bfwcs_product_is_subscription
  • bfwcs_subscription_link_active
  • braintree
  • braintree_delete_user_payment_method
  • braintree_delete_user_payment_methods
  • braintree_device_data_field
  • braintree_get_customer_id
  • braintree_get_default_method
  • braintree_get_method_uris
  • braintree_get_method_url
  • braintree_get_payment_method_formats
  • braintree_get_payment_method_from_token
  • braintree_get_payment_method_title_from_array
  • braintree_get_payment_method_title_from_method
  • braintree_get_payment_method_title_from_method_details
  • braintree_get_payment_method_title_from_transaction
  • braintree_get_payment_title_from_token
  • braintree_get_payment_token_from_transaction
  • braintree_get_user_payment_methods
  • braintree_hidden_field
  • braintree_nonce_field
  • braintree_payment_method_to_array
  • braintree_payment_token_field
  • braintree_save_payment_method_from_transaction
  • braintree_save_user_payment_method
  • braintree_save_user_payment_methods
  • bt_manager
  • bwc_3ds_no_action_needed
  • bwc_3ds_verify_vaulted_methods
  • bwc_add_allowed_html
  • bwc_add_notice
  • bwc_applepay_cart_checkout_enabled
  • bwc_applepay_checkout_banner_enabled
  • bwc_applepay_get_line_items
  • bwc_applepay_product_checkout_enabled
  • bwc_calculate_fee
  • bwc_can_refund_order
  • bwc_card_payments_enabled
  • bwc_custom_form_text
  • bwc_cvv_field_enabled
  • bwc_display_icons_on_payment_methods_page
  • bwc_display_save_payment_method
  • bwc_dropin_v2_enabled
  • bwc_dropin_v3_enabled
  • bwc_enable_signup_from_checkout
  • bwc_execute_conditional_statement
  • bwc_fail_on_duplicate
  • bwc_fee_enabled_for_gateway
  • bwc_fees_enabled
  • bwc_get_3_0_0_deprecated_order_prop
  • bwc_get_3_0_0_updated_props
  • bwc_get_3ds_modal_html
  • bwc_get_billing_agreement_desc
  • bwc_get_comma_separated_product_names
  • bwc_get_conditional_values
  • bwc_get_custom_form
  • bwc_get_custom_form_fields
  • bwc_get_custom_forms
  • bwc_get_default_method
  • bwc_get_enclosed_icon_url
  • bwc_get_fees_for_gateway
  • bwc_get_gateway_fees
  • bwc_get_gateway_id
  • bwc_get_googlepay_methods
  • bwc_get_loader_file
  • bwc_get_merchant_account
  • bwc_get_merchant_accounts
  • bwc_get_option_text
  • bwc_get_order_property
  • bwc_get_payment_gateways
  • bwc_get_paypal_button
  • bwc_get_paypal_credit_button
  • bwc_get_paypal_credit_html
  • bwc_get_paypal_html
  • bwc_get_product_property
  • bwc_get_save_method_template
  • bwc_get_smartbutton_style
  • bwc_get_template
  • bwc_get_template_html
  • bwc_get_user_applepay_payment_methods
  • bwc_get_user_payment_methods
  • bwc_get_user_paypal_payment_methods
  • bwc_googlepay_enabled
  • bwc_is_3ds_active
  • bwc_is_3ds_enabled
  • bwc_is_admin_webhook_request
  • bwc_is_advanced_fraud_tools
  • bwc_is_applepay_enabled
  • bwc_is_checkout
  • bwc_is_custom_form
  • bwc_is_descriptors_enabled
  • bwc_is_dynamic_card_display
  • bwc_is_paypal_enabled
  • bwc_is_wc_3_0_0_or_more
  • bwc_kount_enabled
  • bwc_kount_send_processing_email
  • bwc_locate_template
  • bwc_output_checkout_error
  • bwc_payment_icons_enclosed_type
  • bwc_payment_icons_outside
  • bwc_payment_icons_type
  • bwc_payment_loader_enabled
  • bwc_payment_method_token_field
  • bwc_payment_token_field
  • bwc_paypal_cart_checkout_enabled
  • bwc_paypal_checkout_banner_enabled
  • bwc_paypal_checkout_flow
  • bwc_paypal_credit_active
  • bwc_paypal_credit_conditions
  • bwc_paypal_credit_enabled
  • bwc_paypal_credit_send_shipping
  • bwc_paypal_send_shipping
  • bwc_postal_code_enabled
  • bwc_refresh_payment_fragments
  • bwc_saved_payment_method_style
  • bwc_saved_payment_methods_list
  • bwc_set_checkout_error
  • bwc_smart_buttons_enabled
  • bwc_use_admin_text_for_custom_form
  • bwcs_braintree_subscriptions_active
  • bwcs_calculate_order_total
  • bwcs_can_combine_subscriptions
  • bwcs_can_delete_payment_method
  • bwcs_cart_item_contains_subscription
  • bwcs_get_cart_item_key
  • bwcs_get_current_date_time
  • bwcs_get_num_of_billing_cycles
  • bwcs_get_plan_from_product
  • bwcs_get_product_from_subscription
  • bwcs_get_start_date_in_utc
  • bwcs_get_subscription_date
  • bwcs_is_braintree_subscription
  • bwcs_is_change_payment_method
  • bwcs_is_paid_for_failed_renewal_request
  • bwcs_is_woocommerce_change_payment
  • bwcs_order_contains_subscription
  • bwcs_order_has_coupon
  • bwcs_order_is_subscription
  • bwcs_product_is_subscription
  • bwcs_retry_after_exception
  • bwcs_start_date_in_site_timezone
  • bwcs_subscription_has_trial
  • bwcs_subscription_is_synched
  • bwcs_subscriptions_active
  • wc_braintree_add_allowed_html
  • wc_braintree_add_body_class
  • wc_braintree_banner_checkout_template
  • wc_braintree_card_loader_options
  • wc_braintree_cart_checkout_template
  • wc_braintree_connection_settings
  • wc_braintree_create_payment_token
  • wc_braintree_create_payment_token_from_transaction
  • wc_braintree_custom_form_active
  • wc_braintree_custom_form_options
  • wc_braintree_delete_customer
  • wc_braintree_deprecated_template_check
  • wc_braintree_device_data_field
  • wc_braintree_display_prices_including_tax
  • wc_braintree_enqueue_local_payments
  • wc_braintree_environment
  • wc_braintree_errors_from_object
  • wc_braintree_evaluate_condition
  • wc_braintree_filter_customer_payment_tokens
  • wc_braintree_filter_payment_tokens
  • wc_braintree_generate_client_token
  • wc_braintree_get_3ds_actions
  • wc_braintree_get_card_type_icons
  • wc_braintree_get_checkout_fields
  • wc_braintree_get_conditional_values
  • wc_braintree_get_currency
  • wc_braintree_get_custom_form
  • wc_braintree_get_customer_id
  • wc_braintree_get_error_messages
  • wc_braintree_get_fee_gateways
  • wc_braintree_get_file_data
  • wc_braintree_get_local_gateways
  • wc_braintree_get_merchant_account
  • wc_braintree_get_merchant_accounts
  • wc_braintree_get_order_environment
  • wc_braintree_get_order_for_payment_id
  • wc_braintree_get_payment_method_format
  • wc_braintree_get_payment_tokens
  • wc_braintree_get_products_for_conditions
  • wc_braintree_get_response_code_message
  • wc_braintree_get_template
  • wc_braintree_get_template_html
  • wc_braintree_hidden_field
  • wc_braintree_local_payment_completed
  • wc_braintree_local_payment_params
  • wc_braintree_log
  • wc_braintree_log_error
  • wc_braintree_log_info
  • wc_braintree_merchant_id
  • wc_braintree_merge_order_statuses
  • wc_braintree_move_translations
  • wc_braintree_nonce_field
  • wc_braintree_order_statuses
  • wc_braintree_order_statuses_for_registration
  • wc_braintree_output_checkout_error
  • wc_braintree_parse_xml_contents
  • wc_braintree_payment_complete_order_status
  • wc_braintree_payment_gateways
  • wc_braintree_payment_method_formats
  • wc_braintree_payment_method_title
  • wc_braintree_payment_token_field
  • wc_braintree_pre_orders_active
  • wc_braintree_private_key
  • wc_braintree_process_scheduled_local_payment
  • wc_braintree_production_active
  • wc_braintree_public_key
  • wc_braintree_save_cc_enabled
  • wc_braintree_save_customer
  • wc_braintree_set_checkout_error
  • wc_braintree_show_product_checkout_gateways
  • wc_braintree_spam_bot_field
  • wc_braintree_subscriptions_active
  • wc_braintree_update_customer_location
  • wc_braintree_webhook_check
  • wc_braintree_woocommerce_payment_token_deleted
  • wcs_braintree_account_menu_items
  • wcs_braintree_active
  • wcs_braintree_before_delete_order_item
  • wcs_braintree_billing_interval_string
  • wcs_braintree_billing_intervals
  • wcs_braintree_billing_periods
  • wcs_braintree_billing_periods_string
  • wcs_braintree_calculate_end_date
  • wcs_braintree_calculate_first_payment_date
  • wcs_braintree_calculate_next_payment_date
  • wcs_braintree_calculate_start_date
  • wcs_braintree_cart_contains_subscription
  • wcs_braintree_cart_formatted_date
  • wcs_braintree_cart_recurring_tax_html
  • wcs_braintree_cart_recurring_total_html
  • wcs_braintree_cart_shipping_total
  • wcs_braintree_cart_subtotal_string
  • wcs_braintree_cart_tax_total_html
  • wcs_braintree_cart_totals_coupon_html
  • wcs_braintree_change_payment_method_template
  • wcs_braintree_copy_address_from_order
  • wcs_braintree_copy_order_meta
  • wcs_braintree_create_order_from_subscription
  • wcs_braintree_create_renewal_order
  • wcs_braintree_create_subscription
  • wcs_braintree_frontend_interval_string
  • wcs_braintree_get_billing_schedule_string
  • wcs_braintree_get_interval_string
  • wcs_braintree_get_length_string
  • wcs_braintree_get_period_string
  • wcs_braintree_get_plan_from_product
  • wcs_braintree_get_plan_options
  • wcs_braintree_get_plans
  • wcs_braintree_get_price_string
  • wcs_braintree_get_product_price_html
  • wcs_braintree_get_recurring_cart_key
  • wcs_braintree_get_recurring_total_text
  • wcs_braintree_get_related_orders
  • wcs_braintree_get_subscription
  • wcs_braintree_get_subscription_actions
  • wcs_braintree_get_subscription_from_recurring_cart_key
  • wcs_braintree_get_subscription_status_name
  • wcs_braintree_get_subscription_statuses
  • wcs_braintree_get_subscription_statuses_for_registration
  • wcs_braintree_get_subscriptions_for_order
  • wcs_braintree_get_subscriptions_for_user
  • wcs_braintree_is_change_payment_method_request
  • wcs_braintree_localize_scripts
  • wcs_braintree_order_contains_subscription
  • wcs_braintree_order_details
  • wcs_braintree_product_is_subscription
  • wcs_braintree_subscription_cancelled
  • wcs_braintree_subscription_length_string
  • wcs_braintree_subscription_user_actions
  • wcs_braintree_subscriptions_template
  • wcs_braintree_sync_subscription_with_gateway
  • wcs_braintree_view_subscription_template
  • wcs_braintree_webhook_subscription_cancelled
  • wcs_braintree_webhook_subscription_charged_successfully
  • wcs_braintree_webhook_subscription_expired
  • wcs_braintree_webhook_subscription_past_due

No namespace

Classes summary

Braintree_Gateway_Manager This class should not be used in the 3.0.0+ version. Use WC_Braintree_Manager instead.
WC_Braintree_3ds_Validation
WC_Braintree_Admin_Assets
WC_Braintree_Admin_List_Table_Subscriptions
WC_Braintree_Admin_Menus
WC_Braintree_Admin_Order_Metaboxes
WC_Braintree_Admin_Settings
WC_Braintree_Admin_User_Edit
WC_Braintree_Advanced_Fraud_Settings
WC_Braintree_Advanced_Settings_API
WC_Braintree_Alipay_Payment_Gateway
WC_Braintree_API_Settings
WC_Braintree_ApplePay_Payment_Gateway
WC_Braintree_Bancontact_Payment_Gateway
WC_Braintree_CC_Payment_Gateway
WC_Braintree_Condition_Evaluator
WC_Braintree_Context_Stack
WC_Braintree_Controller_3ds
WC_Braintree_Controller_ApplePay

Controller that intercepts Apple Pay REST requests. Used for updating Apple Pay Wallet elements such as line items, shipping, etc.

WC_Braintree_Controller_Cart
WC_Braintree_Controller_Checkout
WC_Braintree_Controller_Client_Token
WC_Braintree_Controller_Data_Migration
WC_Braintree_Controller_Frontend Class WC_Braintree_Controller_Frontend
WC_Braintree_Controller_GooglePay Controller class for the Google Pay payment gateway.
WC_Braintree_Controller_Kount
WC_Braintree_Controller_Local_Payment

Controller class that is called when a local payment gateway is used. This controller stores the payer data for later use by webhooks so the payment can be completed.

WC_Braintree_Controller_Merchant_Accounts
WC_Braintree_Controller_Order_Actions
WC_Braintree_Controller_Payment_Tokens
WC_Braintree_Controller_PayPal
WC_Braintree_Controller_Plan
WC_Braintree_Controller_Product
WC_Braintree_Controller_Settings
WC_Braintree_Controller_Webhook
WC_Braintree_Customer_Manager Class that manages customer create and update within the Braintree vault.
WC_Braintree_Deprecated_Filter_Hooks Deprecated filter hooks
WC_Braintree_Descriptor_Settings
WC_Braintree_EPS_Payment_Gateway
WC_Braintree_Fee_Settings
WC_Braintree_Field_Manager
WC_Braintree_Form_Handler
WC_Braintree_Frontend_Scripts
WC_Braintree_Giropay_Payment_Gateway
WC_Braintree_GooglePay_Payment_Gateway
WC_Braintree_IDEAL_Payment_Gateway
WC_Braintree_Install
WC_Braintree_Local_Payment_Gateway Abstract class that should be extended by local payment gateways.
WC_Braintree_Manager
WC_Braintree_Merchant_Account_Settings
WC_Braintree_Meta_Box_Coupons
WC_Braintree_Meta_Box_Subscription_Order_Data
WC_Braintree_MyBank_Payment_Gateway
WC_Braintree_P24_Payment_Gateway
WC_Braintree_Payment_Gateway Abstract class that is meant to be extended by Braintree payment methods.
WC_Braintree_Payment_Method_Conversion Class that retreives Braintree payment methods periodically and updates the WC payment tokens table.
WC_Braintree_PayPal_Payment_Gateway
WC_Braintree_Post_Types
WC_Braintree_Product_Gateway_Option
WC_Braintree_Query
WC_Braintree_Rest_API
WC_Braintree_Rest_Controller
WC_Braintree_Rest_Webook_Authentication
WC_Braintree_Sepa_Payment_Gateway
WC_Braintree_Settings_API
WC_Braintree_Shortcode_Payment_Buttons Class WC_Braintree_Shortcode_Payment_Buttons
WC_Braintree_Shortcodes Class WC_Braintree_Shortcodes
WC_Braintree_Sofort_Payment_Gateway
WC_Braintree_Subscription
WC_Braintree_Subscription_Data_Store_CPT
WC_Braintree_Subscription_Settings
WC_Braintree_Subscriptions_Cart
WC_Braintree_Subscriptions_Checkout
WC_Braintree_Update
WC_Braintree_Venmo_Payment_Gateway
WC_Braintree_WeChat_Payment_Gateway
WC_Meta_Box_Braintree_Subscription_Data
WC_Payment_Token_Braintree
WC_Payment_Token_Braintree_ApplePay
WC_Payment_Token_Braintree_CC
WC_Payment_Token_Braintree_GooglePay
WC_Payment_Token_Braintree_Local_Payment
WC_Payment_Token_Braintree_PayPal
WC_Payment_Token_Braintree_Venmo
WC_Product_Braintree_Subscription
WC_Product_Braintree_Subscription_Variation
WC_Product_Braintree_Variable_Subscription
WCS_Braintree_Subscription_Controller

Controller that processes subscription payments when a WCS has been created in Braintree and relies on the Braintree billing engine.

Traits summary

WC_Braintree_Controller_Cart_Trait
WC_Braintree_Settings_Trait

Functions summary

bfwc_add_body_class
bfwc_billing_periods_string Return an array of options that can be used to represent formatted billing periods.
bfwc_can_delete_payment_method Check to see if a payment method can be deleted.
bfwc_copy_address_from_order
bfwc_error_code_type_nicename
bfwc_get_combined_error_messages
bfwc_get_error_message
bfwc_get_error_messages
bfwc_get_gateway_timezone Return the configured gateway timezone.
bfwc_get_product_descriptors
bfwc_get_subscription_status_name

Return the nice name for the status provided. If the status is invalid, then the status provided will be returned.

bfwc_get_subscription_statuses Return an array of subscription statuses.
bfwc_get_template
bfwc_get_timezones Return an array of UTC timezones
bfwc_register_subscription_status
bfwc_subscription_length_string
bfwc_subscription_user_actions return an array of user actions that pertain to the subscription.
bfwcs_billing_interval_string
bfwcs_billing_intervals
bfwcs_calculate_end_date
bfwcs_calculate_first_payment_date
bfwcs_calculate_next_payment_date
bfwcs_calculate_order_total
bfwcs_calculate_start_date
bfwcs_can_combine_subscriptions Return true if products that are the same can be combined into one subscription.
bfwcs_cart_contains_subscriptions Determine if the WC_Cart contains a Braintree subscription product.
bfwcs_cart_formatted_date

Return a formatted date. The timezone given is the timezone in which the formatted string will be converted to. All given times should be in UTC to ensure proper conversion.

bfwcs_cart_recurring_total_html Return html for the recurring total portion displayed on the cart page.
bfwcs_cart_shipping_total Generate the html for the cart shipping displayed on the cart page.
bfwcs_cart_subtotal_string Return the string for the subscription price.
bfwcs_cart_tax_total_html Return html for the tax total portion displayed on the cart page.
bfwcs_copy_order_meta Copy meta data from one order to another.
bfwcs_create_order_from_subscription
bfwcs_create_renewal_order
bfwcs_create_subscription Create the subscription within the WordPress database.
bfwcs_frontend_interval_string
bfwcs_get_currency_symbol
bfwcs_get_interval_string Returns the interval string for the given interval and period.
bfwcs_get_length_string
bfwcs_get_period_string
bfwcs_get_plan_from_product
bfwcs_get_price_string
bfwcs_get_product_price_html
bfwcs_get_related_orders
bfwcs_get_subscription Return a subscription object from the given id.
bfwcs_get_subscription_actions
bfwcs_get_subscription_statuses
bfwcs_get_subscriptions_for_order
bfwcs_get_subscriptions_for_user Retrieve subscriptions for the given user.
bfwcs_is_change_payment_method Return true if the current request is for the subscription change payment method.
bfwcs_is_pay_for_subscription_request Return true if the current request is for the pay subscription page.
bfwcs_order_contains_subscription Given an order object or order_id, return true if there are Braintree subscriptions associated with the order.
bfwcs_order_is_subscription Return true if the order is actually a subscription.
bfwcs_product_is_subscription Return true if the product is a Braintree Subscription.
bfwcs_subscription_link_active
braintree Returns the main instance of Braintree for WooCommerce
braintree_delete_user_payment_method
braintree_delete_user_payment_methods
braintree_device_data_field Echo an input field for a braintree device data hidden field.
braintree_get_customer_id
braintree_get_default_method
braintree_get_method_uris
braintree_get_method_url
braintree_get_payment_method_formats
braintree_get_payment_method_from_token
braintree_get_payment_method_title_from_array
braintree_get_payment_method_title_from_method
braintree_get_payment_method_title_from_method_details
braintree_get_payment_method_title_from_transaction
braintree_get_payment_title_from_token
braintree_get_payment_token_from_transaction
braintree_get_user_payment_methods
braintree_hidden_field
braintree_nonce_field
braintree_payment_method_to_array
braintree_payment_token_field
braintree_save_payment_method_from_transaction
braintree_save_user_payment_method
braintree_save_user_payment_methods
bt_manager
bwc_3ds_no_action_needed
bwc_3ds_verify_vaulted_methods
bwc_add_allowed_html
bwc_add_notice
bwc_applepay_cart_checkout_enabled Return true if Apple Pay is enabled for the cart page.
bwc_applepay_checkout_banner_enabled

* Return true if Apple Pay is enabled for the checkout banner section.

bwc_applepay_get_line_items Return an array of Apple Pay formatted line items to be shown in the Apple Wallet
bwc_applepay_product_checkout_enabled Return true if Apple Pay is enabled on product pages
bwc_calculate_fee Evaluate the fee.
bwc_can_refund_order Return true of the order contains a transaction Id.
bwc_card_payments_enabled Return true if credit card payments are enabled.
bwc_custom_form_text
bwc_cvv_field_enabled Return true if the cvv field has been enabled for custom forms.
bwc_display_icons_on_payment_methods_page Return true if icons should be displayed on the payment methods page.
bwc_display_save_payment_method Return true if the save payment method checkbox should be displayed.
bwc_dropin_v2_enabled Return true if V2 of the dropin is enabled.
bwc_dropin_v3_enabled Return true of V3 of the dropin is enabled.
bwc_enable_signup_from_checkout
bwc_execute_conditional_statement
bwc_fail_on_duplicate Return true if the gateway is configured to reject duplicate payment methods.
bwc_fee_enabled_for_gateway Return true if there is a fee configured for the gateway.
bwc_fees_enabled Return true if fees are enabled.
bwc_get_3_0_0_deprecated_order_prop
bwc_get_3_0_0_updated_props
bwc_get_3ds_modal_html Return the html for the 3DS modal html.
bwc_get_billing_agreement_desc Return the billing agreement description.
bwc_get_comma_separated_product_names Return a comma separated list of products.
bwc_get_conditional_values Return an array of conditional value keys and their values.
bwc_get_custom_form

Return the configured custom form. Example array('html' => 'custom-forms/bootstrap-form.php', 'css'=>'https:'//example.com/styles/mycss.css')

bwc_get_custom_form_fields Return an array of custom form fields used in the custom payment form.
bwc_get_custom_forms Return an array of custom form.
bwc_get_default_method
bwc_get_enclosed_icon_url
bwc_get_fees_for_gateway
bwc_get_gateway_fees Return the gateway fee(s).
bwc_get_gateway_id Return the gateway id for the given gateway.
bwc_get_googlepay_methods
bwc_get_loader_file
bwc_get_merchant_account

Return the merchant account id configured for the WooCommerce currency. If there is no merchant account, return an empty string.

bwc_get_merchant_accounts
bwc_get_option_text
bwc_get_order_property

Wrapper for returning the provided order property. Based on the WC version, the property is fetched differently. Backwards compatability for versions less than WC 3.0.0 is needed, thus the implementation of a wrapper.

bwc_get_payment_gateways Return an array of braintree WC gateways.
bwc_get_paypal_button Return the button that has been selected for use on the frontend.
bwc_get_paypal_credit_button
bwc_get_paypal_credit_html
bwc_get_paypal_html Return the html used for paypal methods.
bwc_get_product_property
bwc_get_save_method_template
bwc_get_smartbutton_style
bwc_get_template

Include the given template. The template is first checked in the theme's path.

bwc_get_template_html
bwc_get_user_applepay_payment_methods
bwc_get_user_payment_methods
bwc_get_user_paypal_payment_methods
bwc_googlepay_enabled
bwc_is_3ds_active

Return true if 3DS is active. If WC subscriptions is active and the request is for a payment method change, this function will return false regardless of the 3DS setting.

bwc_is_3ds_enabled
bwc_is_admin_webhook_request Return true if the current request is an admin webhook test.
bwc_is_advanced_fraud_tools Return true if advanced fraud tools has been enabled.
bwc_is_applepay_enabled Return true if Apple Pay is enabled.
bwc_is_checkout
bwc_is_custom_form Return true if custom forms are enabled.
bwc_is_descriptors_enabled Return true if dynamic descriptors have been enabled.
bwc_is_dynamic_card_display Return true if dynamic card display is active.
bwc_is_paypal_enabled

Return true if PayPal has been enabled as a payment gateway. Custom forms must be enabled as well in order for this function to return true.

bwc_is_wc_3_0_0_or_more Return true if the WC version is 3.0.0 or greater.
bwc_kount_enabled Return true if Kount is enabled in the plugin.
bwc_kount_send_processing_email Return true if the order processing email should be sent.
bwc_locate_template

Loate the template file in the theme and if not in the theme then in the plugin.

bwc_output_checkout_error
bwc_payment_icons_enclosed_type
bwc_payment_icons_outside

Return true if the payment method icons should be displayed on the outside of the gateway html.

bwc_payment_icons_type Return the icon type that is set for payment methods
bwc_payment_loader_enabled
bwc_payment_method_token_field Echo an input field for the payment method token.
bwc_payment_token_field
bwc_paypal_cart_checkout_enabled
bwc_paypal_checkout_banner_enabled

* Return true if PayPal is enabled for the checkout banner section.

bwc_paypal_checkout_flow

Return true if the PayPal checkout flow is 'checkout.' If WooCommerce Subscriptions is active, then check if the cart contains subscriptions. If there are subscriptions in the cart, then 'vault' must be active to ensure PayPal payment methods are saved. If the page is the add payment page, then false is returned as 'vault' flow is needed for adding PayPal payment methods.

bwc_paypal_credit_active
bwc_paypal_credit_conditions
bwc_paypal_credit_enabled Return true if PayPal Credit is enabled.
bwc_paypal_credit_send_shipping
bwc_paypal_send_shipping
bwc_postal_code_enabled

Return true if the postal code field has been enabled for custom forms. 2.6.20 - true is always returned for the add payment method page since AVS rules might be enabled.

bwc_refresh_payment_fragments
bwc_saved_payment_method_style
bwc_saved_payment_methods_list

Return an array of saved payment methods. Most useful if called when the payment-methods page is being rendered.

bwc_set_checkout_error
bwc_smart_buttons_enabled Return true if the Smart Buttons integration is enabled for PayPal.
bwc_use_admin_text_for_custom_form
bwcs_braintree_subscriptions_active

Return true if subscriptions are to be created using Braintree's recurring plan options.

bwcs_calculate_order_total

Calculate the WC_Order total. If the order contains subscriptions which start immediately, then their totals should be subtracted from the order.

bwcs_can_combine_subscriptions Return true if products that are the same can be combined into one subscription.
bwcs_can_delete_payment_method

Function that determines if there are any subscriptions associated with the payment method. If so, then it returns false. Subscriptions with a status of cancelled are not considered.

bwcs_cart_item_contains_subscription Return true if the cart item contains a Braintree Subscription.
bwcs_get_cart_item_key Remove the items associated with the subscription from the order.
bwcs_get_current_date_time
bwcs_get_num_of_billing_cycles Return the number of billing cycles for the subscription.
bwcs_get_plan_from_product Return the Braintree Subscription plan associated with the WC product.
bwcs_get_product_from_subscription
bwcs_get_start_date_in_utc
bwcs_get_subscription_date
bwcs_is_braintree_subscription Return true of the subscription object is associated with a Braintree subscription.
bwcs_is_change_payment_method Return true if the request is for a subscription payment method change.
bwcs_is_paid_for_failed_renewal_request Return true if the current request is for a payment method update on a failed renewal order.
bwcs_is_woocommerce_change_payment

Return true if the request is for when a subscription payment method has been changed.

bwcs_order_contains_subscription Returns true of the order contains a Braintree Subscription.
bwcs_order_has_coupon Return true if the order has a coupon.
bwcs_order_is_subscription Return true if the WC_Order is a Braintree_Subscription.
bwcs_product_is_subscription Returns true if a product is a Braintree Subscription.
bwcs_retry_after_exception

Return true if WC Subscription scheduled payment should be retried if there is an exception that prevents the recurring payment from being processed.

bwcs_start_date_in_site_timezone

Return the DateTime object that represents the subscription start date. The DateTime object is created using the next_payment for synchronized subscriptions and the start_date for non trial subscriptions. Date and the timezone of the site is then used to determine the local time. A new DateTime object is then creating using that localtime and the timezone is set to UTC, which does not affect the time.

bwcs_subscription_has_trial
bwcs_subscription_is_synched Return true if a subscription contains a synced product.
bwcs_subscriptions_active Return true if Braintree subscriptions is active.
wc_braintree_add_allowed_html
wc_braintree_add_body_class
wc_braintree_banner_checkout_template
wc_braintree_card_loader_options
wc_braintree_cart_checkout_template
wc_braintree_connection_settings Return an array of connection values used to establish connection with Braintree.
wc_braintree_create_payment_token
wc_braintree_create_payment_token_from_transaction
wc_braintree_custom_form_active
wc_braintree_custom_form_options
wc_braintree_delete_customer
wc_braintree_deprecated_template_check Check the file for version tag and send notice if deprecated template is being used.
wc_braintree_device_data_field
wc_braintree_display_prices_including_tax
wc_braintree_enqueue_local_payments
wc_braintree_environment

Return the currently active environment. Possible values are production or sandbox.

wc_braintree_errors_from_object
wc_braintree_evaluate_condition
wc_braintree_filter_customer_payment_tokens

Filter Braintree payment tokens based on the current environment. You wouldn't want to show sandbox payment tokens when the current environment is production.

wc_braintree_filter_payment_tokens Filter payment tokens based on the current environment.
wc_braintree_generate_client_token

Generates a client token used for setting up the Braintree SDK. The merchant account is passed as an argument, so this method reliably determines which merchant account to use based on the store's currency, the order's currency etc.

wc_braintree_get_3ds_actions
wc_braintree_get_card_type_icons
wc_braintree_get_checkout_fields
wc_braintree_get_conditional_values
wc_braintree_get_currency Returns the store's currency based on factors like if it's the checkout page, order pay page, etc.
wc_braintree_get_custom_form
wc_braintree_get_customer_id
wc_braintree_get_error_messages
wc_braintree_get_fee_gateways Return an array of payment gateways that support wc_braintree_fee
wc_braintree_get_file_data
wc_braintree_get_local_gateways
wc_braintree_get_merchant_account Return the merchant account based on WC currency.
wc_braintree_get_merchant_accounts

Return all merchant accounts for the given environment. If no env is provided then active environment is used.

wc_braintree_get_order_environment

Return the Braintree environment that this order was created for.

  • sandbox
  • production
wc_braintree_get_order_for_payment_id
wc_braintree_get_payment_method_format
wc_braintree_get_payment_tokens Returns a list of Payment tokens and bypasses WordPress's number of posts retriction.
wc_braintree_get_products_for_conditions
wc_braintree_get_response_code_message Given a Braintree transaction object, map the cvvResponseCode etc to human readable messages.
wc_braintree_get_template
wc_braintree_get_template_html
wc_braintree_hidden_field
wc_braintree_local_payment_completed
wc_braintree_local_payment_params

Returns an array of localized local payment gateway params used on the checkout page.

wc_braintree_log Log the provided message in the WC logs directory.
wc_braintree_log_error
wc_braintree_log_info
wc_braintree_merchant_id
wc_braintree_merge_order_statuses
wc_braintree_move_translations
wc_braintree_nonce_field Echo an input field for a braintree payment_method_nonce.
wc_braintree_order_statuses
wc_braintree_order_statuses_for_registration
wc_braintree_output_checkout_error
wc_braintree_parse_xml_contents
wc_braintree_payment_complete_order_status

Hooks in to woocommerce_payment_complete_order_status and updates the order status based on gateway settings.

wc_braintree_payment_gateways
wc_braintree_payment_method_formats
wc_braintree_payment_method_title
wc_braintree_payment_token_field
wc_braintree_pre_orders_active Returns true of the WC Pre Order plugin is active.
wc_braintree_private_key
wc_braintree_process_scheduled_local_payment
wc_braintree_production_active Return true of Production is currently active.
wc_braintree_public_key
wc_braintree_save_cc_enabled
wc_braintree_save_customer
wc_braintree_set_checkout_error
wc_braintree_show_product_checkout_gateways
wc_braintree_spam_bot_field
wc_braintree_subscriptions_active Return true if the Braintree plugin's subscription functionality is active.
wc_braintree_update_customer_location Update the WC customer's address information using the provided address array.
wc_braintree_webhook_check Hooked in to the webhook notification test
wc_braintree_woocommerce_payment_token_deleted
wcs_braintree_account_menu_items
wcs_braintree_active Return true if the WooCommerce Subscriptions plugin is active.
wcs_braintree_before_delete_order_item
wcs_braintree_billing_interval_string
wcs_braintree_billing_intervals
wcs_braintree_billing_periods
wcs_braintree_billing_periods_string Return an array of options that can be used to represent formatted billing periods.
wcs_braintree_calculate_end_date
wcs_braintree_calculate_first_payment_date

Calculate the first payment date of the subscription. The date is returned in UTC.

wcs_braintree_calculate_next_payment_date
wcs_braintree_calculate_start_date
wcs_braintree_cart_contains_subscription Determine if the WC_Cart contains a Braintree subscription product.
wcs_braintree_cart_formatted_date

Return a formatted date. The timezone given is the timezone in which the formatted string will be converted to. All given times should be in UTC to ensure proper conversion.

wcs_braintree_cart_recurring_tax_html
wcs_braintree_cart_recurring_total_html Return html for the recurring total portion displayed on the cart page.
wcs_braintree_cart_shipping_total Generate the html for the cart shipping displayed on the cart page.
wcs_braintree_cart_subtotal_string Return the string for the subscription price.
wcs_braintree_cart_tax_total_html Return html for the tax total portion displayed on the cart page.
wcs_braintree_cart_totals_coupon_html Get recurring coupon html
wcs_braintree_change_payment_method_template
wcs_braintree_copy_address_from_order
wcs_braintree_copy_order_meta Copy meta data from one order to another.
wcs_braintree_create_order_from_subscription
wcs_braintree_create_renewal_order
wcs_braintree_create_subscription Create the subscription within the WordPress database.
wcs_braintree_frontend_interval_string
wcs_braintree_get_billing_schedule_string
wcs_braintree_get_interval_string Returns the interval string for the given interval and period.
wcs_braintree_get_length_string
wcs_braintree_get_period_string
wcs_braintree_get_plan_from_product
wcs_braintree_get_plan_options
wcs_braintree_get_plans
wcs_braintree_get_price_string
wcs_braintree_get_product_price_html
wcs_braintree_get_recurring_cart_key
wcs_braintree_get_recurring_total_text
wcs_braintree_get_related_orders
wcs_braintree_get_subscription Return a subscription object from the given id.
wcs_braintree_get_subscription_actions
wcs_braintree_get_subscription_from_recurring_cart_key
wcs_braintree_get_subscription_status_name

Return the nice name for the status provided. If the status is invalid, then the status provided will be returned.

wcs_braintree_get_subscription_statuses
wcs_braintree_get_subscription_statuses_for_registration
wcs_braintree_get_subscriptions_for_order
wcs_braintree_get_subscriptions_for_user Retrieve subscriptions for the given user.
wcs_braintree_is_change_payment_method_request
wcs_braintree_localize_scripts
wcs_braintree_order_contains_subscription Returns true if the order contains a Braintree Subscription.
wcs_braintree_order_details
wcs_braintree_product_is_subscription Return true if the product is a Braintree Subscription.
wcs_braintree_subscription_cancelled
wcs_braintree_subscription_length_string
wcs_braintree_subscription_user_actions return an array of user actions that pertain to the subscription.
wcs_braintree_subscriptions_template
wcs_braintree_sync_subscription_with_gateway Snyc the WP database dates with the dates stored in Braintree to keep everything consistant.
wcs_braintree_view_subscription_template
wcs_braintree_webhook_subscription_cancelled
wcs_braintree_webhook_subscription_charged_successfully Create a renewal order associated with the subscription payment.
wcs_braintree_webhook_subscription_expired
wcs_braintree_webhook_subscription_past_due
Braintree API documentation generated by ApiGen