Asaas Gateway for WooCommerce 2.7.9 has 3 actions and 60 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Asaas Gateway for WooCommerce fires an action
add_action( 'asaas_webhook_payment_overdue', function( $payment, $order ) {
// Your code runs here.
}, 10, 2 );
// Change a value Asaas Gateway for WooCommerce is about to use
add_filter( 'woocommerce_asaas_process_payment_api_response', function( $value, $transaction ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
apply_filters( 'woocommerce_asaas_process_payment_api_response', $this->api->payments()->create( $transaction['payment_data'] ), $transaction['payment_data'] ); -
apply_filters( 'woocommerce_asaas_process_subscription_api_response', $this->api->subscriptions()->create( $transaction['payment_data'] ), $transaction['payment_data'] ); -
apply_filters( 'woocommerce_asaas_payment_data', $payment_data, $wc_order, $gateway ); -
apply_filters( 'asaas_should_delete_expired_ticket', true, $payment, $order_id ); -
apply_filters( 'asaas_webhook_on_payment_deleted_subscription_new_status', 'on-hold', $this->order, $this->event ); -
apply_filters( 'asaas_webhook_on_payment_overdue_subscription_new_status', 'on-hold', $this->order, $this->event ); -
apply_filters( 'asaas_webhook_on_payment_refunded_subscription_new_status', 'on-hold', $this->order, $this->event ); -
apply_filters( 'asaas_webhook_on_payment_restored_subscription_new_status', 'on-hold', $this->order, $this->event ); -
do_action( 'asaas_webhook_payment_overdue', $this->data->payment, $this->order ); -
apply_filters( "woocommerce_asaas_{$this->gateway_prefix}_max_installments", $max_installments_limit ); -
woocommerce_asaas_{$this->gateway_prefix}_min_installment_value
filter Copy link Customise this hookapply_filters( "woocommerce_asaas_{$this->gateway_prefix}_min_installment_value", $min_installment_value_limit ); -
apply_filters( "woocommerce_asaas_{$this->gateway_prefix}_min_installments", 1 ); -
do_action( 'woocommerce_asaas_add_inline_script', $script_name ); -
apply_filters( 'woocommerce_asaas_billing_field_keys', self::DEFAULT_FIELD_KEYS ); -
apply_filters( 'woocommerce_asaas_card_expiration_label', __( 'Expiration date', 'woo-asaas' ) ); -
apply_filters( 'woocommerce_asaas_card_expiration_subfields', array( $key . '_label' => array_merge( $args, array( 'type' => Label::get_instance()->get_type(), 'label' => apply_filters( 'woocommerce_asaas_card_expiration_label', __( 'Expiration date', 'woo-asaas' ) ), 'id' => 'assas-cc-expiration-label', 'class' => array_merge( $args['class'], array( 'asaas-cc-form-field-no-margin' ) ), ) ), $key . '_month' => $this->month_args( $args ), $key . '_year' =>... ); -
do_action( 'woocommerce_asaas_card_expiration_validate', $errors, $gateway, $key, $field, $data ); -
apply_filters( 'woocommerce_asaas_card_number_subfields', array( $key . '_number' => $args, ), $key ); -
apply_filters( 'woocommerce_asaas_card_security_code_subfields', array( $key . '_security_code' => $args, ), $key ); -
apply_filters( 'woocommerce_asaas_card_subfields', array( $key . '_name' => array_merge( $args, array( 'type' => 'text', 'label' => __( 'Name on card', 'woo-asaas' ), 'required' => true, 'class' => $fields_class, 'id' => 'asaas-cc-name', ) ), $key . '_number' => array_merge( $args, array( 'type' => Card_Number::get_instance()->get_type(), 'label' => __( 'Card number', 'woo-asaas' ), 'required' => true, 'class' => $fields_class, 'id' => 'asaas-c... ); -
apply_filters( 'woocommerce_asaas_cc_available_brands', array( 'visa' => array( 'name' => __( 'Visa', 'woo-asaas' ), 'number_validation' => '/^4\d{12}(\d{3})?$/', 'security_code_validation' => '/^[0-9]{3}$/', ), 'mastercard' => array( 'name' => __( 'Mastercard', 'woo-asaas' ), 'number_validation' => '/^(5[1-5]\d{14}|2(22[1-9]\d{12}|2[3-9]\d{13}|[3-6]\d{14}|7[0-1]\d{13}|720\d{12})|6(0[0,3]\d{13}|3[7,9]\d{13}|7\d\d{13})|975230\d{10})$/', 'security_cod... ); -
apply_filters( 'woocommerce_asaas_cc_payment_fields', $fields, $this ); -
apply_filters( 'woocommerce_asaas_cc_posted_data', $data ); -
apply_filters( 'woocommerce_asaas_cc_settings_fields', array_merge( $fields, array( 'min_total' => array( 'title' => __( 'Order minimum total', 'woo-asaas' ), 'type' => 'text', 'description' => __( 'The order minimum total to allow use this payment method. Use <code>0</code> to disable this option.', 'woo-asaas' ), 'default' => '0', 'section' => 'gateway', 'priority' => 10, ), 'one_click_buy' => array( 'title' => __( 'One-Click Buy', 'woo-asaas' ),... ); -
apply_filters( 'woocommerce_asaas_cc_settings_sections', $sections ); -
apply_filters( 'woocommerce_asaas_checkout_invalid_expiration_message', __( '<strong>Expiration</strong> must be a non-past date.', 'woo-asaas' ) ); -
apply_filters( 'woocommerce_asaas_checkout_invalid_expiration_month_message', sprintf( __( '%s must have two digits and be a valid month number.', 'woo-asaas' ), '<strong>' . $field_label . '</strong>' ) ); -
apply_filters( 'woocommerce_asaas_checkout_invalid_expiration_year_message', sprintf( __( '%s must at least 2 digits and be a non-past year.', 'woo-asaas' ), '<strong>' . $field_label . '</strong>' ) ); -
apply_filters( 'woocommerce_asaas_checkout_required_field_message', sprintf( __( '%s is a required field.', 'woo-asaas' ), '<strong>' . esc_html( $field_name ) . '</strong>' ), $field_name ); -
apply_filters( 'woocommerce_asaas_default_pix_validity_days', self::DEFAULT_VALIDITY_DAYS ); -
apply_filters( 'woocommerce_asaas_default_ticket_validity_days', 3 ); -
apply_filters( 'woocommerce_asaas_default_ticket_validity_period', '' ); -
apply_filters( 'woocommerce_asaas_getways', $this->gateways ); -
apply_filters( 'woocommerce_asaas_getways_classes', array( \WC_Asaas\Gateway\Ticket::class, \WC_Asaas\Gateway\Credit_Card::class, \WC_Asaas\Gateway\Pix::class, ) ); -
apply_filters( 'woocommerce_asaas_internal_api_error', $customer_message ); -
apply_filters( 'woocommerce_asaas_invalid_security_code_message', __( 'Invalid security code.', 'woo-asaas' ) ); -
apply_filters( 'woocommerce_asaas_log_message', preg_replace( '/\s+/', ' ', $message ) ); -
apply_filters( 'woocommerce_asaas_one_click_options_subfields', array( $key . '_label' => array_merge( $args, array( 'type' => Label::get_instance()->get_type(), 'label' => $args['label'], 'id' => 'assas-cc-one-click-buy-label-field', 'class' => array( 'one-click-buy-label' ), 'required' => false, ) ), $key . '_options' => array_merge( $args, array( 'class' => array( 'one-click-buy-option' ), 'options' => $args['options'], 'return' => true, 'required' => tr... ); -
apply_filters( 'woocommerce_asaas_pix_payment_fields', $fields, $this ); -
apply_filters( 'woocommerce_asaas_pix_posted_data', $data ); -
apply_filters( 'woocommerce_asaas_pix_settings_fields', $fields, $this ); -
apply_filters( 'woocommerce_asaas_pix_settings_sections', $sections ); -
apply_filters( 'woocommerce_asaas_plugin_dependencies', array( 'woocommerce' => array( 'name' => 'WooCommerce', 'plugin_file' => 'woocommerce/woocommerce.php', ), ) ); -
apply_filters( 'woocommerce_asaas_plugin_subscription_dependencies', array( 'woocommerce-subscriptions' => array( 'name' => 'WooCommerce Subscriptions', 'plugin_file' => 'woocommerce-subscriptions/woocommerce-subscriptions.php', 'notice_callback' => array( $this, 'woocommerce_subscriptions_missing_notice' ), 'min_version' => '6.4', ), ) ); -
apply_filters( 'woocommerce_asaas_process_pay_with_credit_card_api_response', $this->api->payments()->pay_with_credit_card( $payment->id, $payment_data ), $payment_id, $payment_data ); -
apply_filters( 'woocommerce_asaas_process_payment_refund_api_response', $this->api->payments()->refund( $payment_id ), $this ); -
apply_filters( 'woocommerce_asaas_request_api_key', $this->gateway->get_api_key(), $data ); -
apply_filters( 'woocommerce_asaas_request_url', $this->gateway->get_option( 'endpoint' ), $data ); -
apply_filters( 'woocommerce_asaas_set_customer_action', $action, $customer, $params ); -
apply_filters( 'woocommerce_asaas_set_customer_api_response', call_user_func_array( array( $this->api->customers(), $action ), $params ) ); -
apply_filters( 'woocommerce_asaas_set_customer_params', $params, $customer, $action ); -
apply_filters( 'woocommerce_asaas_settings_fields', $fields, $this ); -
apply_filters( 'woocommerce_asaas_settings_sections', array( 'default' => array( 'title' => '', 'priority' => 0, ), 'gateway' => array( 'title' => __( 'Gateway', 'woo-asaas' ), 'priority' => 10, ), 'api' => array( 'title' => __( 'API', 'woo-asaas' ), 'priority' => 20, ), 'subscriptions' => array( 'title' => __( 'Subscriptions', 'woo-asaas' ), 'priority' => 40, ), 'advanced' => array( 'title' => __( 'Advanced Options', 'woo-asaas' ), 'priority' => ... ); -
apply_filters( 'woocommerce_asaas_should_enqueue_script', $this->is_valid_global_wc_admin_page( $hook_suffix ), $hook_suffix ); -
apply_filters( 'woocommerce_asaas_should_process_webhook', true, $data, $targets->order(), $targets->request_subscription() ); -
apply_filters( 'woocommerce_asaas_subscription_payment_data', $subscription_payment_data, $wc_order, $subscription, $subscription_item, $gateway ); -
apply_filters( 'woocommerce_asaas_ticket_payment_fields', $fields, $this ); -
apply_filters( 'woocommerce_asaas_ticket_posted_data', $data ); -
apply_filters( 'woocommerce_asaas_ticket_settings_fields', $fields, $this ); -
apply_filters( 'woocommerce_asaas_ticket_settings_sections', $sections ); -
apply_filters( 'woocommerce_asaas_transactions_queue', $transactions_queue, $wc_order, $gateway ); -
apply_filters( "woocommerce_settings_api_sanitized_fields_{$other_gateway->id}", $other_gateway->settings );
Generated from Asaas Gateway for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: