Previous in Contents Next in Contents

IClientPaymentProvider::IsTypeValid

Syntax

HRESULT IsTypeValid(
BSTR
bstrType// in
BSTRbstrAcceptTypes// in
long *
plResult// out
);

Description

The IsTypeValid function determines whether a type is valid given the accepted types string. This function is used by the user interface to indicate which payment types are accepted at a merchant's site. Payment types that are not accepted at a merchant's site appear shaded.

Parameters

bstrType
String identifying the payment type of the instance.
bstrAcceptTypes
List of accepted types provided by the merchant. See the "Remarks" section of IClientPaymentProvider::IsValid.
plResult
Pointer to a long that is a Boolean.

Return Value

This function returns one of the following values.

Value Meaning
E_FAIL Failure.
E_INVALIDARG One or more of the arguments is invalid.
S_OK Success.

Related Topics


© 1997-2000 Microsoft Corporation. All rights reserved.