Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit c5f2d49

Browse files
committed
make sure set variable is implemented! (#2580)
1 parent 235b0cf commit c5f2d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Payments/Integrations/Stripe.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function get_allow_saved_cards() {
119119
// https://github.com/woocommerce/woocommerce-gateway-stripe/blob/master/includes/class-wc-gateway-stripe.php#L95 .
120120
// See https://github.com/woocommerce/woocommerce-gateway-stripe/blob/ad19168b63df86176cbe35c3e95203a245687640/includes/class-wc-gateway-stripe.php#L271 and
121121
// https://github.com/woocommerce/woocommerce/wiki/Payment-Token-API .
122-
return apply_filters( 'wc_stripe_display_save_payment_method_checkbox', filter_var( $this->settings['saved_cards'], FILTER_VALIDATE_BOOLEAN ) );
122+
return apply_filters( 'wc_stripe_display_save_payment_method_checkbox', filter_var( $saved_cards, FILTER_VALIDATE_BOOLEAN ) );
123123
}
124124

125125
/**

0 commit comments

Comments
 (0)