Class CreditCardPayment
Represents Credit Card type of payment.
Implements
Inherited Members
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public class CreditCardPayment : Payment, IXmlSerializable, IStorageObject, ICloneable, ISerializable, ICreditCardPayment, IPayment, IExtendedProperties
Constructors
CreditCardPayment()
Initializes a new instance of the CreditCardPayment class.
Declaration
public CreditCardPayment()
CreditCardPayment(SerializationInfo, StreamingContext)
Initializes a new instance of the CreditCardPayment class.
Declaration
protected CreditCardPayment(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
CardType
Gets or sets the type of the card. Types typically are VISA, MasterCard, AMEX.
Declaration
public string CardType { get; set; }
Property Value
Type | Description |
---|---|
System.String | The type of the card. |
CreditCardNumber
Gets or sets the credit card number. The field is not encrypted by default. Encryption should be handled by the layer calling the property.
Declaration
public string CreditCardNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
It is NOT recommended to store this data, even encrypted. Storing credit card number is a security risk and is not compliant with PCI standards. More information can be found at https://www.pcisecuritystandards.org/
CreditCardPaymentMetaClass
Gets the credit card payment meta class.
Declaration
public static MetaClass CreditCardPaymentMetaClass { get; }
Property Value
Type | Description |
---|---|
MetaClass | The credit card payment meta class. |
CreditCardSecurityCode
Gets or sets the credit card security code.
Declaration
public string CreditCardSecurityCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | The credit card security code. |
ExpirationMonth
Gets or sets the expiration month. Goes from 1 to 12.
Declaration
public int ExpirationMonth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The expiration month. |
ExpirationYear
Gets or sets the expiration year.
Declaration
public int ExpirationYear { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The expiration year. |
ProviderPaymentId
Gets or sets the Provider payment Id.
Declaration
public string ProviderPaymentId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ProviderProfileId
Gets or sets the Provider profile Id.
Declaration
public string ProviderProfileId { get; set; }
Property Value
Type | Description |
---|---|
System.String |