WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

OrderController::validate_order_before_payment() public WC 1.0

Final validation ran before payment is taken.

By this point we have an order populated with customer data and items.

{} It's a method of the class: OrderController{}

No Hooks.

Return

null. Nothing.

Usage

$OrderController = new OrderController();
$OrderController->validate_order_before_payment( $order );
$order(WC_Order) (required)
Order object.

Code of OrderController::validate_order_before_payment() WC 5.8.0

public function validate_order_before_payment( \WC_Order $order ) {
	$this->validate_coupons( $order );
	$this->validate_email( $order );
	$this->validate_addresses( $order );
}