WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

Automattic\WooCommerce\Blocks\Payments\Integrations

Stripe::get_allow_saved_cards() private WC 1.0

Determine if store allows cards to be saved during checkout.

{} Это метод класса: Stripe{}

Возвращает

true/false. True if merchant allows shopper to save card (payment method) during checkout).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_allow_saved_cards();

Код Stripe::get_allow_saved_cards() WC 4.7.1

<?php
private function get_allow_saved_cards() {
	$saved_cards = isset( $this->settings['saved_cards'] ) ? $this->settings['saved_cards'] : false;
	// 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 .
	return apply_filters( 'wc_stripe_display_save_payment_method_checkbox', filter_var( $saved_cards, FILTER_VALIDATE_BOOLEAN ) );
}