WC_Gateway_Paypal_Response::payment_on_hold( WC_Order $order, string $reason = '' )

Hold order and add note.


Description Description


Parameters Parameters

$order

(Required) Order object.

$reason

(Optional) Reason why the payment is on hold.

Default value: ''


Top ↑

Source Source

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

	protected function payment_on_hold( $order, $reason = '' ) {
		$order->update_status( 'on-hold', $reason );
		WC()->cart->empty_cart();
	}


Top ↑

User Contributed Notes User Contributed Notes

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