Class 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.

Property Summary 

PropertyDescription
last4: StringReturns the last 4 digits of the gift card number, or null if not known.

Constructor Summary 

ConstructorDescription
GiftCardPaymentDetails()Constructs an empty gift card payment details object.

Method Summary 

MethodDescription
getLast4()Returns the last 4 digits of the gift card number, or null if not known.
setLast4(String)Sets the last 4 digits of the gift card number.

Methods inherited from class SalesforcePaymentDetails 

getType

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Property Details 

last4 

last4: String

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


Constructor Details 

GiftCardPaymentDetails() 

GiftCardPaymentDetails()

Constructs an empty gift card payment details object.


Method Details 

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(String) 

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