Class SalesforcePaymentDetails
dw.extensions.payments
Class SalesforcePaymentDetails
Object
dw.extensions.payments.SalesforcePaymentDetails

Base class details to a payment.

Payment details are differentiated by their type. Some payment types like TYPE_CARD contain additional details like the card brand, or the last 4 digits of the card number. Details for those payment types are represented by a type-specific subclass of this class. Other payment types have no additional information so their details are represented by an object of this base type.

Payment details contain information about the method and credentials for a payment before any attempt to authorize or capture a payment amount. Some of that information may be relevant to the payer and is appropriate to present on an order confirmation or order history page, as well as in an order confirmation email. Other information may only be important for auditing or fraud check purposes and need not be presented to the payer.

Constants
TYPE_AFTERPAY_CLEARPAY  :  String = "afterpay_clearpay"
Represents the Afterpay Clearpay payment method.
TYPE_AMAZON_PAY  :  String = "amazon_pay"
Represents the Amazon Pay payment method.
TYPE_BANCONTACT  :  String = "bancontact"
Represents the Bancontact payment method.
TYPE_CARD  :  String = "card"
Represents a credit card type of payment method.
TYPE_EPS  :  String = "eps"
Represents the EPS (Electronic Payment Standard) payment method.
TYPE_GIFT_CARD  :  String = "gift_card"
Represents a gift card type of payment method.
TYPE_IDEAL  :  String = "ideal"
Represents the iDEAL payment method.
TYPE_KLARNA  :  String = "klarna"
Represents the Klarna payment method.
TYPE_PAYPAL  :  String = "paypal"
Represents the PayPal payment method.
TYPE_SEPA_DEBIT  :  String = "sepa_debit"
Represents the SEPA Debit payment method.
TYPE_TWINT  :  String = "twint"
Represents the TWINT payment method.
TYPE_VENMO  :  String = "venmo"
Represents the Venmo payment method.
Properties
type  :  String  (Read Only)
The payment type.
Constructor Summary
SalesforcePaymentDetails(type : String)
Constructs a new payment details instance for the given payment type.
Method Summary
getType() : String
Returns the payment type.
Constructor Detail
SalesforcePaymentDetails
public SalesforcePaymentDetails(type : String)
Constructs a new payment details instance for the given payment type.
Parameters:
type - the payment type, must not be null

Method Detail