CreditCardIdentifier Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the token used to identify the credit card.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Property CreditCardIdentifier As String
'Usage
Dim instance As CreditCardPayment
Dim value As String
value = instance.CreditCardIdentifier
instance.CreditCardIdentifier = value
public string CreditCardIdentifier { get; set; }
public:
property String^ CreditCardIdentifier {
String^ get ();
void set (String^ value);
}
public function get CreditCardIdentifier () : String
public function set CreditCardIdentifier (value : String)
Property Value
Type: System..::.String
The token used to identify the credit card. Default is an empty string.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The length of the string being set is greater than the maximum allowable length specified in the orders storage mapping file. |
Remarks
The string value is trimmed of leading and trailing white space characters prior to being set.
Use this property to store the last four digits of credit card number or any other token with which a user can identify the credit card he used while placing the order.
The default maximum length for CreditCardIdentifier is 40 characters, as defined in the corresponding table column constraint specified in the default orders storage mapping file, OrderObjectMappings.xml.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.