WC_Gateway_Paypal::order_received_text( string $text, WC_Order $order )

Custom PayPal order received text.


Description Description


Parameters Parameters

$text

(Required) Default text.

$order

(Required) Order data.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/gateways/paypal/class-wc-gateway-paypal.php

	public function order_received_text( $text, $order ) {
		if ( $order && $this->id === $order->get_payment_method() ) {
			return esc_html__( 'Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you. Log into your PayPal account to view transaction details.', 'woocommerce' );
		}

		return $text;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.