Automattic\WooCommerce\Internal\Orders

MobileMessagingHandler::accept_payment_message()private staticWC 1.0

Prepares message with a deep link to mobile payment.

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

Хуков нет.

Возвращает

Строку. formatted message

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

$result = MobileMessagingHandler::accept_payment_message( ?int $blog_id, $domain ): string;
?int $blog_id (обязательный)
-
$domain(строка) (обязательный)
URL of the current site.

Код MobileMessagingHandler::accept_payment_message() WC 7.1.0

private static function accept_payment_message( ?int $blog_id, $domain ): string {
	$deep_link_url = add_query_arg(
		array_merge(
			array(
				'blog_id' => absint( $blog_id ),
			),
			self::prepare_utm_parameters( 'deeplinks_payments', $blog_id, $domain )
		),
		'https://woocommerce.com/mobile/payments'
	);

	return sprintf(
		/* translators: 1: opening link tag 2: closing link tag. */
		esc_html__(
			'%1$sCollect payments easily%2$s from your customers anywhere with our mobile app.',
			'woocommerce'
		),
		'<a href="' . esc_url( $deep_link_url ) . '">',
		'</a>'
	);
}