Script: Class dw.extensions.SalesforcePaymentDetails

Class SalesforcePaymentDetails

  • Object
    • dw.extensions.payments.SalesforcePaymentDetails

Base class details to a Salesforce Payments payment. See Salesforce Payments documentation for how to gain access and configure it for use on your sites.

Some payment types like SalesforcePaymentMethod.TYPE_CARD contain additional details like the card brand, or the last 4 digits of the card number. Details to those payments will be of a specific subclass of this class like SalesforceCardPaymentDetails. Other payment types have no additional information so their details are represented by an object of this base type.

All Known Subclasses

SalesforceBancontactPaymentDetails, SalesforceCardPaymentDetails, SalesforceEpsPaymentDetails, SalesforceIdealPaymentDetails, SalesforceKlarnaPaymentDetails, SalesforcePayPalPaymentDetails, SalesforceSepaDebitPaymentDetails, SalesforceVenmoPaymentDetails

Properties

type : String Read Only

The payment type.

Constructor Summary

This class does not have a constructor, so you cannot create it directly. To get an instance of this class, use one of the subclass constructors.

Method Summary

getType() : String

Returns the payment type.

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

Method Detail

getType

getType() : String

Returns the payment type.

Returns:

payment type

See Also:

SalesforcePaymentMethod.TYPE_BANCONTACT

SalesforcePaymentMethod.TYPE_CARD

SalesforcePaymentMethod.TYPE_EPS

SalesforcePaymentMethod.TYPE_IDEAL

SalesforcePaymentMethod.TYPE_KLARNA

SalesforcePaymentMethod.TYPE_SEPA_DEBIT

SalesforcePayPalOrder.TYPE_PAYPAL

SalesforcePayPalOrder.TYPE_VENMO