Automattic\WooCommerce\StoreApi\Payments
PaymentContext::set_order()
Set the order context.
Method of the class: PaymentContext{}
No Hooks.
Return
null
. Nothing (null).
Usage
$PaymentContext = new PaymentContext(); $PaymentContext->set_order( $order );
- $order(\WC_Order) (required)
- Order object.
PaymentContext::set_order() PaymentContext::set order code WC 9.3.3
public function set_order( \WC_Order $order ) { $this->order = $order; }