From 926a46b31ee6c1c8a869611562236c40940d2948 Mon Sep 17 00:00:00 2001 From: Darren Ethier Date: Wed, 27 May 2020 13:48:05 -0400 Subject: [PATCH] make sure set variable is implemented! (https://github.com/woocommerce/woocommerce-blocks/pull/2580) --- plugins/woocommerce-blocks/src/Payments/Integrations/Stripe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/src/Payments/Integrations/Stripe.php b/plugins/woocommerce-blocks/src/Payments/Integrations/Stripe.php index e2ff5388561..423e90bbc55 100644 --- a/plugins/woocommerce-blocks/src/Payments/Integrations/Stripe.php +++ b/plugins/woocommerce-blocks/src/Payments/Integrations/Stripe.php @@ -119,7 +119,7 @@ final class Stripe extends AbstractPaymentMethodType { // 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 . - return apply_filters( 'wc_stripe_display_save_payment_method_checkbox', filter_var( $this->settings['saved_cards'], FILTER_VALIDATE_BOOLEAN ) ); + return apply_filters( 'wc_stripe_display_save_payment_method_checkbox', filter_var( $saved_cards, FILTER_VALIDATE_BOOLEAN ) ); } /**