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: ''
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(); }