WordPress at Your Fingertips
function is not described


Stripe::get_allow_payment_request() private WC 1.0

Determine if store allows Payment Request buttons - e.g. Apple Pay / Chrome Pay.

{} It's a method of the class: Stripe{}

No Hooks.


true|false. True if merchant has opted into payment request.


// private - for code of main (parent) class only
$result = $this->get_allow_payment_request();

Code of Stripe::get_allow_payment_request() WC 5.6.0

private function get_allow_payment_request() {
	$option = isset( $this->settings['payment_request'] ) ? $this->settings['payment_request'] : false;
	return filter_var( $option, FILTER_VALIDATE_BOOLEAN );