HRESULT GetMask(
BSTRbstrType// in
LONG *expDate// out
BSTR *bstrMask// out
);
The GetMask function returns a string containing the mask for a specified payment type. There is no default mask; therefore, if a zero (0) is returned, this is an error. A mask is required in order for a credit-card number to appear in the Add dialog box. A flag is also returned that indicates whether or not the card contains an expiration date.
Characters in the mask can be in uppercase or lowercase. The mask should not exceed 20 characters in length (excluding spaces).
If you specify constants for the mask, these are displayed in the dialog box presented to the consumer by the Payment Selector. Notice that, for purposes of transactions, these constants will not be posted as part of the consumer's card number ; instead, only the characters entered by the consumer are posted.
This function returns one of the following values.
Value | Meaning |
---|---|
E_FAIL | Failure |
E_OUTOFMEMORY | Insufficient memory |
S_OK | Success |