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

Commit 235b0cf

Browse files
committed
verify index is present before using (#2580)
1 parent 38afb71 commit 235b0cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Payments/Integrations/Stripe.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public function get_payment_method_data() {
114114
* @return bool True if merchant allows shopper to save card (payment method) during checkout).
115115
*/
116116
private function get_allow_saved_cards() {
117+
$saved_cards = isset( $this->settings['saved_cards'] ) ? $this->settings['saved_cards'] : false;
117118
// This assumes that Stripe supports `tokenization` - currently this is true, based on
118119
// https://github.com/woocommerce/woocommerce-gateway-stripe/blob/master/includes/class-wc-gateway-stripe.php#L95 .
119120
// See https://github.com/woocommerce/woocommerce-gateway-stripe/blob/ad19168b63df86176cbe35c3e95203a245687640/includes/class-wc-gateway-stripe.php#L271 and

0 commit comments

Comments
 (0)