Payment Gateway of Stripe for WooCommerce 5.1.1 has 8 actions and 128 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 Payment Gateway of Stripe for WooCommerce fires an action
add_action( 'woocommerce_order_partially_refunded', function( $order_id, $refund_id, $refund_id2 ) {
// Your code runs here.
}, 10, 3 );
// Change a value Payment Gateway of Stripe for WooCommerce is about to use
add_filter( 'wt_promotion_banner_screens', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * woocommerce_order_partially_refunded. */ do_action( 'woocommerce_order_partially_refunded', $order_id, $refund_id, $refund_id ); -
/** * Pages to show the promotional banner. */ apply_filters( 'wt_promotion_banner_screens', array() ); -
/** * Action fires after adding the product to the cart using payment request * button */ do_action( 'wt_stripe_button_after_add_to_cart', $product_id ); -
/** * Action fires before adding the product to the cart using payment request * button */ do_action( 'wt_stripe_button_before_add_to_cart', $product_id ); -
/** * Apply filters to the shipping address. */ apply_filters( 'wtst_address_for_calculate_shipping_for_express_button', $address ); -
/** * Pages to show this black friday and cyber monday banner for 2024. */ apply_filters( 'wtst_bfcm_banner_screens', array('toplevel_page_wt_stripe_menu') ); -
apply_filters( 'woocommerce_gateway_icon', $icon, $this->id ); -
apply_filters( 'eh_stripe_show_items_in_payment_description', false ); -
apply_filters( 'eh_stripe_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'hide_inline_postal_code', true ); -
apply_filters( 'eh_stripe_ccshow_zipcode', true ); -
apply_filters( 'wt_stripe_alter_item_title', __('Shipping', 'payment-gateway-stripe-and-woocommerce-integration') ); -
do_action( 'woocommerce_order_fully_refunded', $order_id, $refund_id ); -
apply_filters( 'woocommerce_order_fully_refunded_status', 'refunded', $order_id, $refund_id ); -
do_action( 'woocommerce_order_refunded', $order_id, $refund_id ); -
do_action( 'woocommerce_refund_processed', $refund, true ); -
apply_filters( 'wt_stripe_same_account_for_all_sites', false ); -
apply_filters( 'wt_stripe_inline_processing', true ); -
apply_filters( 'wt_stripe_load_script', false ); -
apply_filters( 'wt_stripe_order_need_processing_on_checkout', true, $decoded ); -
apply_filters( 'wtst_oauth_token_refresh_interval', 40 * MINUTE_IN_SECONDS ); -
apply_filters( 'wtst_process_order_on_other_status', false, $order_status ); -
apply_filters( 'eh_affirm_payment_intent_args', $charge, $wc_order ); -
apply_filters( 'eh_affirm_val', $stripe_params ); -
apply_filters( 'eh_afterpay_generate_charge_request', $post_data, $order, $source_id ); -
apply_filters( 'eh_afterpay_payment_intent_args', $charge, $wc_order ); -
apply_filters( 'eh_afterpay_val', $stripe_params ); -
apply_filters( 'eh_alipay_payment_intent_args', $charge ); -
apply_filters( 'eh_alipay_val', $stripe_params ); -
apply_filters( 'eh_bacs_icon', $icon, $this->id ); -
apply_filters( 'eh_bancontact_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_bancontact_generate_charge_request', $post_data, $order, $source_id ); -
apply_filters( 'eh_bancontact_payment_intent_args', $charge ); -
apply_filters( 'eh_bancontact_val', $stripe_params ); -
apply_filters( 'eh_becs_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_becs_payment_intent_args', $charge ); -
apply_filters( 'eh_becs_val', $stripe_params ); -
apply_filters( 'eh_boleto_payment_intent_args', $charge ); -
apply_filters( 'eh_boleto_val', $stripe_params ); -
apply_filters( 'eh_check_site_miss_match_multisite', false, $decoded ); -
apply_filters( 'eh_enable_site_miss_match_multisite', false ); -
apply_filters( 'eh_eps_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_eps_generate_charge_request', $post_data, $order, $source_id ); -
apply_filters( 'eh_eps_payment_intent_args', $charge ); -
apply_filters( 'eh_eps_val', $stripe_params ); -
apply_filters( 'eh_fpx_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_fpx_payment_intent_args', $charge ); -
apply_filters( 'eh_fpx_val', $stripe_params ); -
apply_filters( 'eh_giropay_payment_intent_args', $charge ); -
apply_filters( 'eh_giropay_val', $stripe_params ); -
apply_filters( 'eh_grabpay_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_grabpay_payment_intent_args', $charge ); -
apply_filters( 'eh_grabpay_val', $stripe_params ); -
apply_filters( 'eh_ideal_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_ideal_payment_intent_args', $charge ); -
apply_filters( 'eh_ideal_val', $stripe_params ); -
apply_filters( 'eh_klarna_generate_charge_request', $post_data, $order, $source_id ); -
apply_filters( 'eh_klarna_payment_intent_args', $charge ); -
apply_filters( 'eh_klarna_val', $stripe_params ); -
apply_filters( 'eh_multibanco_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_multibanco_generate_charge_request', $post_data, $order, $source_id ); -
apply_filters( 'eh_multibanco_payment_intent_args', $payment_intent_args ); -
apply_filters( 'eh_oxxo_payment_intent_args', $charge ); -
apply_filters( 'eh_oxxo_val', $stripe_params ); -
apply_filters( 'eh_p24_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_p24_generate_charge_request', $post_data, $order, $source_id ); -
apply_filters( 'eh_p24_payment_intent_args', $charge ); -
apply_filters( 'eh_p24_val', $stripe_params ); -
apply_filters( 'eh_sepa_desc', wpautop(wp_kses_post("<span>" . $description . "</span>")) ); -
apply_filters( 'eh_sepa_generate_charge_request', $post_data, $order, $source_id ); -
apply_filters( 'eh_sepa_payment_intent_args', $charge ); -
apply_filters( 'eh_sepa_val', $stripe_params ); -
apply_filters( 'eh_stripe_api_user_agent', $user_agent ); -
apply_filters( 'eh_stripe_becs_elements_option', array( 'style' => array( 'base' => array( 'fontSize' => '15px' , "iconColor" => "#666EE8", "color" => "#31325F", "fontSize" => "15px", "::placeholder" => array( "color" => "#CFD7E0", ), ) ), ) ); -
apply_filters( 'eh_stripe_elements_options', array() ); -
apply_filters( 'eh_stripe_fpx_elements_option', array( 'style' => array( 'base' => array( 'fontSize' => '15px' , "iconColor" => "#666EE8", "color" => "#31325F", "fontSize" => "15px", "::placeholder" => array( "color" => "#CFD7E0", ), ) ), ) ); -
apply_filters( 'eh_stripe_grabpay_elements_option', array( 'supportedCountries' => array( 'GrabPay' ), 'placeholderCountry' => 'DE', 'style' => array( 'base' => array( 'fontSize' => '15px' , "iconColor" => "#666EE8", "color" => "#31325F", "fontSize" => "15px", "::placeholder" => array( "color" => "#CFD7E0", ), ) ), ) ); -
apply_filters( 'eh_stripe_ideal_elements_option', array( 'style' => array( 'base' => array( 'fontSize' => '15px' , "iconColor" => "#666EE8", "color" => "#31325F", "fontSize" => "15px", "::placeholder" => array( "color" => "#CFD7E0", ), ) ), ) ); -
apply_filters( 'eh_stripe_payment_intent_args', $charge ); -
apply_filters( 'eh_stripe_qr_message', __('Please scan the QR code to complete the payment. This page will automatically redirect when payment is confirmed.', 'payment-gateway-stripe-and-woocommerce-integration') ); -
apply_filters( 'eh_stripe_qr_redirect_script', false ); -
apply_filters( 'eh_stripe_qr_style', $qr_style ); -
apply_filters( 'eh_stripe_qr_width', $width ); -
apply_filters( 'eh_stripe_redirect_time_in_minute', $redirect_time ); -
apply_filters( 'eh_stripe_sepa_elements_option', array( 'supportedCountries' => array( 'SEPA' ), 'placeholderCountry' => 'DE', 'style' => array( 'base' => array( 'fontSize' => '15px' , "iconColor" => "#666EE8", "color" => "#31325F", "fontSize" => "15px", "::placeholder" => array( "color" => "#CFD7E0", ), ) ), ) ); -
apply_filters( 'eh_stripe_sepa_elements_options', array( 'supportedCountries' => array( 'SEPA' ), 'placeholderCountry' => WC()->countries->get_base_country(), 'style' => array( 'base' => array( 'fontSize' => '15px' ) ), 'card_number_placeholder' => __('1234 1234 1234 1234', 'payment-gateway-stripe-and-woocommerce-integration'), 'card_expiry_placeholder' => __('MM / YY', 'payment-gateway-stripe-and-woocommerce-integration'), 'card_cvc_placehold... ); -
apply_filters( 'eh_stripe_val', $stripe_params ); -
apply_filters( 'eh_supported_product_types', array( 'simple','variable','variation','booking','bundle','composite','mix-and-match', ) ); -
apply_filters( 'eh_wechat_generate_charge_request', $post_data, $order, $customer ); -
apply_filters( 'eh_wechat_payment_intent_args', $charge ); -
apply_filters( 'eh_wechat_val', $stripe_params ); -
do_action( 'eh_woocommerce_credit_card_form_end', $this->id ); -
do_action( 'eh_woocommerce_credit_card_form_start', $this->id ); -
apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_shipping_packages', $packages ); -
apply_filters( "wt_{$plugin_id}_alter_role_access", $roles ); -
apply_filters( 'wt_ch_collect_vat', false ); -
apply_filters( 'wt_ideal_inline_processing', true ); -
apply_filters( 'wt_load_script_on_cart', $load_script_on_cart ); -
apply_filters( 'wt_load_script_on_product', $load_script_on_product ); -
apply_filters( 'wt_payment_request_total', $total ); -
apply_filters( 'wt_sepa_mandate', __('By providing your IBAN and confirming this payment, you authorise and Stripe, our payment service provider, to send instructions to your bank to debit your account and your bank to debit your account in accordance with those instructions. You are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks start... ); -
apply_filters( 'wt_stripe_add_new_card_brand_filter', $this->eh_stripe_checkout_cards ); -
apply_filters( 'wt_stripe_add_to_cart_params', $data ); -
apply_filters( 'wt_stripe_allowed_page_slugs', array( 'eh-stripe-overview','wt_stripe_menu' ) ); -
apply_filters( 'wt_stripe_alter_checkout_request_params', $session_data, $order ); -
apply_filters( 'wt_stripe_alter_customer_request', $params ); -
apply_filters( 'wt_stripe_alter_payment_request_params', $params ); -
apply_filters( 'wt_stripe_api_version', '2025-03-31.basil' ); -
apply_filters( 'wt_stripe_cart_total_before_payment', WC()->cart->total ); -
apply_filters( 'wt_stripe_checkout_discount_amount', $discount, $order ); -
apply_filters( 'wt_stripe_gateway_available', $enable ); -
apply_filters( 'wt_stripe_klarna_processing', true ); -
apply_filters( 'wt_stripe_order_need_processing_bancontact', true ); -
apply_filters( 'wt_stripe_order_need_processing_ideal', true ); -
apply_filters( 'wt_stripe_order_need_processing_on_charge', true, $decoded ); -
apply_filters( 'wt_stripe_order_need_processing_on_charge_refunded', true, $decoded ); -
apply_filters( 'wt_stripe_order_need_processing_on_payment_intent', true, $decoded ); -
apply_filters( 'wt_stripe_order_need_processing_on_source', true, $decoded ); -
apply_filters( 'wt_stripe_order_total_before_payment', ((version_compare(WC()->version, '2.7.0', '<')) ? $order->order_total : $order->get_total()) ); -
apply_filters( 'wt_stripe_payment_request_button_disabled', false ); -
apply_filters( 'wt_stripe_payment_request_script_params', $eh_payment_request_params ); -
apply_filters( 'wt_stripe_process_card_payment_only_through_webhook', false ); -
apply_filters( 'wt_stripe_use_charge', false ); -
apply_filters( 'wtst_bfcm_show_banner', self::$show_banner ); -
apply_filters( 'wtst_enable_phone_number_collection', true ); -
apply_filters( 'wtst_force_refund_status', false ); -
apply_filters( 'wtst_oauth_retryable_error_cooldown', 10 * MINUTE_IN_SECONDS ); -
apply_filters( 'wtst_oauth_terminal_error_cooldown', HOUR_IN_SECONDS ); -
apply_filters( 'wtst_oauth_token_expiry_interval', 50 * MINUTE_IN_SECONDS ); -
apply_filters( 'wtst_refresh_token_connect_timeout', 25 ); -
apply_filters( 'wtst_refresh_token_timeout', 60 ); -
apply_filters( 'wtst_refresh_token_web_connect_timeout', 5 ); -
apply_filters( 'wtst_refresh_token_web_timeout', 8 ); -
apply_filters( 'wtst_webhook_sleep_time', 0 );
Generated from Payment Gateway of Stripe 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: