Table of Contents

Class PaymentCardToken

Namespace
Dynamicweb.Ecommerce.Cart
Assembly
Dynamicweb.Ecommerce.dll
public class PaymentCardToken : DbObject
Inheritance
PaymentCardToken
Inherited Members

Constructors

PaymentCardToken()

Initializes a new instance of the PaymentCardToken class.
public PaymentCardToken()
See Also

PaymentCardToken(IDataReader)

Initializes a new instance of the PaymentCardToken class from the data reader.
[Obsolete("This method is no longer used.")]
public PaymentCardToken(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.
See Also

Properties

CardType

Gets or sets the card type: visa/mastercard/etc.
public string CardType { get; set; }

Property Value

string
See Also

CheckSum

Gets the checksum
public string CheckSum { get; }

Property Value

string
See Also

Identifier

Gets or sets the card identifier. It will usually contain the last four digits of the card number. However, this depends on the payment provider.
public string Identifier { get; set; }

Property Value

string
See Also

IsDefault

Gets or sets the value determines whether this is user's default payment card.
public bool IsDefault { get; set; }

Property Value

bool
See Also

LanguageID

Gets or sets payment provider language.
[Obsolete("Is not used anymore")]
public string LanguageID { get; set; }

Property Value

string
See Also

Name

Gets or sets the name to identify the card.
public string Name { get; set; }

Property Value

string
See Also

Payment

Gets Payment provider instance.
public Payment Payment { get; }

Property Value

Payment
See Also

PaymentID

Gets or sets which configured PaymentProvider instance is used with this card.
public string PaymentID { get; set; }

Property Value

string
See Also

Token

Gets or sets the token issued from the payment provider to be used when processing payments with this card.
public string Token { get; set; }

Property Value

string
See Also

UsedDate

Gets or sets date when token was used
public DateTime UsedDate { get; set; }

Property Value

DateTime
See Also

UserID

Gets the card user.
public int UserID { get; set; }

Property Value

int
See Also

Methods

Delete()

Delete card token.
[Obsolete("Use Services.PaymentCard.Delete instead.")]
public void Delete()
See Also

Fill(IDataReader)

Fills the Card token properties from the specified data reader.
[Obsolete("This method is no longer used.")]
public override void Fill(IDataReader reader)

Parameters

reader IDataReader
The data reader.
See Also

FillRow(DataRow)

Fills the given DataRow object with property values from this instance.
[Obsolete("This method is no longer used.")]
protected override void FillRow(DataRow row)

Parameters

row DataRow
The data row to fill.
See Also

GetTokenByID(int)

Retrieve card token by ID.
[Obsolete("Use Services.PaymentCard.GetById instead.")]
public static PaymentCardToken GetTokenByID(int tokenID)

Parameters

tokenID int
The id of payment token.

Returns

PaymentCardToken
See Also

GetTokensByCustomerNumber(string)

Retrieve card tokens by user customer number
[Obsolete("Use Services.PaymentCard.GetByCustomerNumber instead.")]
public static IEnumerable<PaymentCardToken> GetTokensByCustomerNumber(string customerNumber)

Parameters

customerNumber string
The user customer number

Returns

IEnumerable<PaymentCardToken>
See Also

GetTokensByUserID(int)

Retrieve card tokens for an user.
[Obsolete("Use Services.PaymentCard.GetByUserId instead.")]
public static IEnumerable<PaymentCardToken> GetTokensByUserID(int userID)

Parameters

userID int
The id of user.

Returns

IEnumerable<PaymentCardToken>
See Also

GetTokensByUserID(int, string, string)

Retrieve card tokens for an user for specified payment id and language id.
[Obsolete("Use Services.PaymentCard.GetByUserId instead.")]
public static IEnumerable<PaymentCardToken> GetTokensByUserID(int userID, string paymentID, string languageID)

Parameters

userID int
The id of the user.
paymentID string
The id of the payment.
languageID string
The language id.

Returns

IEnumerable<PaymentCardToken>
See Also

Save()

Saves current data to the data base.
[Obsolete("Use Services.PaymentCard.Save instead.")]
public override void Save()
See Also

SaveTokenForUser(int, string, string, string, string, string, string)

Save card token for specified user.
[Obsolete("Use Services.PaymentCard.CreatePaymentCard instead.")]
public static PaymentCardToken SaveTokenForUser(int userID, string paymentID, string languageID, string cardName, string cardType, string cardIdentifier, string cardToken)

Parameters

userID int
The id of user
paymentID string
The id of payment gateway
languageID string
The language id
cardName string
cardType string
cardIdentifier string
cardToken string

Returns

PaymentCardToken
See Also

SetDefaultTokenForUser(int, int, bool)

mark\unmark token as default token for the user.
[Obsolete("Use Services.PaymentCard.SetDefaultPaymentCard instead.")]
public static void SetDefaultTokenForUser(int userId, int tokenId, bool isDefault)

Parameters

userId int
The id of user
tokenId int
The id of token PaymentCardToken
isDefault bool
true if the token should be default; false otherwise.
See Also

See Also

To top