WC_Gateway_Paypal::order_received_text
Custom PayPal order received text.
Method of the class: WC_Gateway_Paypal{}
No Hooks.
Returns
String.
Usage
$WC_Gateway_Paypal = new WC_Gateway_Paypal(); $WC_Gateway_Paypal->order_received_text( $text, $order );
- $text(string) (required)
- Default text.
- $order(WC_Order) (required)
- Order data.
Changelog
| Since 3.9.0 | Introduced. |
WC_Gateway_Paypal::order_received_text() WC Gateway Paypal::order received text code WC 10.5.0
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;
}