Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Payments Namespace / IPaymentMethodRepository Interface / LoadForUser Method / LoadForUser(Int32,String) Method
The user requesting available payment methods.
The sort order of the returned methods. Defaults to OrderBy field.
In This Topic
    LoadForUser(Int32,String) Method
    In This Topic
    Loads the payment methods that are available to the specified user, taking into account the role restrictions on the payment methods.
    Syntax

    Parameters

    userId
    The user requesting available payment methods.
    sortExpression
    The sort order of the returned methods. Defaults to OrderBy field.

    Return Value

    A list of payment methods that are available to the user.
    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