WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

CartController::validate_cart_coupons() public WC 1.0

Validate all coupons in the cart and check for errors.

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

No Hooks.

Return

Null. Nothing.

Usage

$CartController = new CartController();
$CartController->validate_cart_coupons();

Code of CartController::validate_cart_coupons() WC 5.0.0

<?php
public function validate_cart_coupons() {
	$cart_coupons = $this->get_cart_coupons();

	foreach ( $cart_coupons as $code ) {
		$coupon = new \WC_Coupon( $code );
		$this->validate_cart_coupon( $coupon );
	}
}