Pagador (Braspag) Checkout for WooCommerce 5.1.2 has 13 actions and 42 filters, read directly from its source code on Nov 19, 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 Pagador (Braspag) Checkout for WooCommerce fires an action
add_action( 'wc_checkout_braspag_checkout_form_after_payment_methods', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Pagador (Braspag) Checkout for WooCommerce is about to use
add_filter( 'wc_checkout_braspag_admin_order_payment_data', function( $value, $payment, $order ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
/** * Action allow developers to change request data */ do_action( "wc_checkout_braspag_populate_payment_{$this::METHOD_CODE}", $this, $order ); -
/** * Filter payment info on dashboard */ apply_filters( 'wc_checkout_braspag_admin_order_payment_data', $this->get_payment_info( $order ), $payment, $order ); -
/** * Filter allow developers to disable gateway */ apply_filters( 'wc_checkout_braspag_api_is_valid', $is_valid, $this->merchant_id, $this->merchant_key ); -
/** * Filter bank slip number */ apply_filters( 'wc_checkout_braspag_bank_slip_number', '', $order, $this ); -
/** * Filter for installment text */ apply_filters( 'wc_checkout_braspag_cc_installment_text', esc_html( $installment ) ); -
/** * Filter for valid installments Default is array from 1 to 12 */ apply_filters( 'wc_checkout_braspag_cc_max_installments', range( 1, 12 ) ); -
/** * Action before payment methods list */ do_action( 'wc_checkout_braspag_checkout_form_after_payment_methods' ); -
/** * Action before payment methods list */ do_action( 'wc_checkout_braspag_checkout_form_before_payment_methods' ); -
/** * Filters the do_payment_request response. */ apply_filters( 'wc_checkout_braspag_do_payment_request', $this->api->do_payment_request( $method, $order, $this ), $order, $this ); -
/** * Filter allow developers to change API QUERY endpoint */ apply_filters( 'wc_checkout_braspag_endpoint_api_query_url', $this->endpoint_api_query ); -
/** * Filter allow developers to change API endpoint */ apply_filters( 'wc_checkout_braspag_endpoint_api_url', $this->endpoint_api ); -
/** * Filters the data passed to checkout template. */ apply_filters( 'wc_checkout_braspag_form_data', array() ); -
/** * Filters the WooCommerce order ID resolved from a Braspag MerchantOrderId. */ apply_filters( 'wc_checkout_braspag_merchant_order_id_to_order_id', $order_id, $merchant_order_id ); -
/** * Filter the error message from payments */ apply_filters( 'wc_checkout_braspag_payment_error_message', $message, $reason_code, $is_credit_card, $default_message ); -
/** * Filter payment status */ apply_filters( 'wc_checkout_braspag_payment_status', $status, $code ); -
/** * Filter payment status note */ apply_filters( 'wc_checkout_braspag_payment_status_note', $note, $code ); -
/** * Action allow developers to change Address object */ do_action( 'wc_checkout_braspag_populate_address', $this, $this->order ); -
/** * Action allow developers to change Customer object */ do_action( 'wc_checkout_braspag_populate_customer', $this, $order ); -
/** * Action allow developers to change request data */ do_action( 'wc_checkout_braspag_populate_payment', $this, $order ); -
/** * Filter provider option fomat */ apply_filters( 'wc_checkout_braspag_providers_as_option', $options, $providers ); -
/** * Filter Braspag Query request */ apply_filters( 'wc_checkout_braspag_query_request', array(), $endpoint ); -
wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_transaction_request
filter Copy link Customise this hook/** * Filter request */ apply_filters( "wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_transaction_request", $request, $this ); -
/** * Filters the transaction retrieved from payment_id */ apply_filters( 'wc_checkout_braspag_update_order_from_payment_transaction', $transaction, $order, $api_query, $this ); -
/** * Action allow developers to do something after updated order status */ do_action( 'wc_checkout_braspag_update_order_status', $status, $order, $transaction, $this ); -
/** * Action allow developers to do something if status is invalid */ do_action( 'wc_checkout_braspag_update_order_status_invalid', $status, $order, $transaction, $this ); -
/** * Action allow developers to do something after updated order data */ do_action( 'wc_checkout_braspag_update_order_transaction_data', $order, $transaction, $this ); -
apply_filters( "wc_checkout_braspag_checkout_form_skip_{$code}", false ); -
wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_provider
filter Copy link Customise this hookapply_filters( "wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_provider", $provider, $this->gateway ); -
apply_filters( 'wc_checkout_braspag_api_request_timeout', 30 ); -
apply_filters( 'wc_checkout_braspag_bank_slip_description', $description ); -
apply_filters( 'wc_checkout_braspag_frontend_payment_methods', $methods, $this ); -
apply_filters( 'wc_checkout_braspag_icon', WCB_PLUGIN_URL . '/modules/woocommerce/assets/images/braspag.png' ); -
apply_filters( "wc_checkout_braspag_method_{$code}_enabled", $enabled ); -
apply_filters( 'wc_checkout_braspag_payment_cc_brand_html_class', 'input-text' ); -
apply_filters( 'wc_checkout_braspag_payment_cc_brand_label', __( 'Brand', WCB_TEXTDOMAIN ) ); -
apply_filters( 'wc_checkout_braspag_payment_cc_expiration_date_html_class', 'input-text' ); -
apply_filters( 'wc_checkout_braspag_payment_cc_expiration_date_label', __( 'Expiration Date', WCB_TEXTDOMAIN ) ); -
apply_filters( 'wc_checkout_braspag_payment_cc_holder_html_class', 'input-text' ); -
apply_filters( 'wc_checkout_braspag_payment_cc_holder_label', __( 'Holder Name', WCB_TEXTDOMAIN ) ); -
apply_filters( 'wc_checkout_braspag_payment_cc_installments_html_class', 'input-text' ); -
apply_filters( 'wc_checkout_braspag_payment_cc_installments_label', __( 'Installments', WCB_TEXTDOMAIN ) ); -
apply_filters( 'wc_checkout_braspag_payment_cc_number_html_class', 'input-text' ); -
apply_filters( 'wc_checkout_braspag_payment_cc_number_label', __( 'Credit Card Number', WCB_TEXTDOMAIN ) ); -
apply_filters( 'wc_checkout_braspag_payment_cc_security_code_html_class', 'input-text' ); -
apply_filters( 'wc_checkout_braspag_payment_cc_security_code_label', __( 'Security Code', WCB_TEXTDOMAIN ) ); -
apply_filters( 'wc_checkout_braspag_payment_cc_show_brand_input', $braspag_gateway->get_option( 'method_cc_find_brand' ) !== 'yes' ); -
do_action( 'wc_checkout_braspag_print_bank_slip_description' ); -
wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_cancel_transaction_endpoint
filter Copy link Customise this hookapply_filters( "wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_cancel_transaction_endpoint", $endpoint ); -
wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_capture_transaction_endpoint
filter Copy link Customise this hookapply_filters( "wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_capture_transaction_endpoint", $endpoint ); -
wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_save_card_alias
filter Copy link Customise this hookapply_filters( "wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_save_card_alias", $alias, $order, $this ); -
wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_transaction_endpoint
filter Copy link Customise this hookapply_filters( "wc_checkout_braspag_request_payment_{$this::METHOD_CODE}_transaction_endpoint", $endpoint ); -
apply_filters( 'wc_checkout_braspag_using_supported_currency', ( get_woocommerce_currency() === 'BRL' ) ); -
do_action( 'wcb_on_core_activation' ); -
do_action( 'woocommerce_payment_complete', $order->get_id() ); -
do_action( 'woocommerce_pre_payment_complete', $order->get_id() );
Generated from Pagador (Braspag) Checkout 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: