Class GiftCardPaymentDetails
dw.extensions.payments
Class GiftCardPaymentDetails
Object
dw.extensions.payments.SalesforcePaymentDetails
dw.extensions.payments.GiftCardPaymentDetails
Details to a payment of type SalesforcePaymentDetails.TYPE_GIFT_CARD. Used for Salesforce Payments and third-party gift card providers. Only the masked identifier (last4) is stored here.
Properties
last4  :  String
The last 4 digits of the gift card number, or null if not known. This is not the full card number (PAN).
Constructor Summary
GiftCardPaymentDetails()
Constructs an empty gift card payment details object.
Method Summary
getLast4() : String
Returns the last 4 digits of the gift card number, or null if not known.
setLast4(last4 : String) : void
Sets the last 4 digits of the gift card number.
Methods inherited from class SalesforcePaymentDetails
Constructor Detail
GiftCardPaymentDetails
public GiftCardPaymentDetails()
Constructs an empty gift card payment details object.

Method Detail
getLast4
getLast4() : String
Returns the last 4 digits of the gift card number, or null if not known. This is not the full card number (PAN).
Returns:
last 4 digits of the gift card number

setLast4
setLast4(last4 : String) : void
Sets the last 4 digits of the gift card number. Do not set the full card number (PAN) or PIN.
Parameters:
last4 - last 4 digits of the gift card number