Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services Namespace / ICouponCalculator Interface / IsCouponValid Method / IsCouponValid(Basket,Coupon,String) Method
The basket to check
The coupon to check
Warning or error message is returned in this variable if any
In This Topic
    IsCouponValid(Basket,Coupon,String) Method
    In This Topic
    Checks if the given coupon is valid for the specified basket
    Syntax
    bool IsCouponValid( 
       Basket basket,
       Coupon coupon,
       out string message
    )

    Parameters

    basket
    The basket to check
    coupon
    The coupon to check
    message
    Warning or error message is returned in this variable if any

    Return Value

    true if coupon is valid for the specified basket, false otherwise
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also