November Happy Hour will be moved to Thursday December 5th.

Class SerializableCreditCardPayment

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

This class represents a credit card payment in the new cart system. It works with the new database model for cart.

Inheritance
System.Object
SerializableCreditCardPayment
Namespace: EPiServer.Commerce.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class SerializableCreditCardPayment : SerializablePayment, ICreditCardPayment, IPayment, IExtendedProperties

Constructors

SerializableCreditCardPayment()

Creates an instance of SerializableCreditCardPayment.

Declaration
public SerializableCreditCardPayment()

SerializableCreditCardPayment(SerializableOrderAddress)

Creates an instance of SerializableCreditCardPayment. This constructor is required for the JSON deserializer to be able to identify concrete classes to use when deserializing the interface properties.

Declaration
public SerializableCreditCardPayment(SerializableOrderAddress billingAddress)
Parameters
Type Name Description
SerializableOrderAddress billingAddress

The billing address.

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

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/

CreditCardSecurityCode

Gets or sets the credit card security code.

Declaration
public string CreditCardSecurityCode { get; set; }
Property Value
Type Description
System.String

ExpirationMonth

Gets or sets the expiration month. Goes from 1 to 12.

Declaration
public int ExpirationMonth { get; set; }
Property Value
Type Description
System.Int32

ExpirationYear

Gets or sets the expiration year.

Declaration
public int ExpirationYear { get; set; }
Property Value
Type Description
System.Int32

ProviderPaymentId

Gets or sets the provider payment identifier.

Declaration
public string ProviderPaymentId { get; set; }
Property Value
Type Description
System.String

Implements

Extension Methods