wc_stripe_display_save_payment_method_checkbox filter-hook . WC 1.0
This assumes that Stripe supports tokenization - currently this is true, based on https://github.com/woocommerce/woocommerce-gateway-stripe/blob/master/includes/class-wc-gateway-stripe.php#L95 . See https://github.com/woocommerce/woocommerce-gateway-stripe/blob/ad19168b63df86176cbe35c3e95203a245687640/includes/class-wc-gateway-stripe.php#L271 and https://github.com/woocommerce/woocommerce/wiki/Payment-Token-API .
Usage
add_filter( 'wc_stripe_display_save_payment_method_checkbox', 'filter_function_name_8741' ); function filter_function_name_8741( $filter_var ){ // filter... return $filter_var; }
- $filter_var
- -
Where the hook is called
wc_stripe_display_save_payment_method_checkbox
woocommerce/packages/woocommerce-blocks/src/Payments/Integrations/Stripe.php 124
return apply_filters( 'wc_stripe_display_save_payment_method_checkbox', filter_var( $saved_cards, FILTER_VALIDATE_BOOLEAN ) );