dw.extensions.payments
Class SalesforcePaymentMethod

Salesforce Payments representation of a payment method object. See Salesforce Payments documentation for how to gain access and configure it for use on your sites.
A payment method contains information about a credential used by a shopper to attempt payment, such as a payment card or bank account. The available information differs for each type of payment method. It includes only limited information that can be safely presented to a shopper to remind them what credential they used, and specifically not complete card, account, or other numbers that could be used to make future payments.
Constants
TYPE_AFTERPAY_CLEARPAY
:
String = "afterpay_clearpay"
Represents the Afterpay Clearpay 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_IDEAL
:
String = "ideal"
Represents the iDEAL payment method.
TYPE_KLARNA
:
String = "klarna"
Represents the Klarna payment method.
TYPE_SEPA_DEBIT
:
String = "sepa_debit"
Represents the SEPA Debit payment method.
Properties
bank
:
String
(Read Only)
The bank of this payment method, or
null
if none is available. Available on
TYPE_IDEAL and TYPE_EPS type methods.
bankCode
:
String
(Read Only)
The bank code of this payment method, or
null
if none is available. Available on
TYPE_SEPA_DEBIT and TYPE_BANCONTACT type methods.
bankName
:
String
(Read Only)
The bank name of this payment method, or
null
if none is available. Available on
TYPE_BANCONTACT type methods.
branchCode
:
String
(Read Only)
The bank branch code of this payment method, or
null
if none is available. Available on
TYPE_SEPA_DEBIT type methods.
brand
:
String
(Read Only)
The brand of this payment method, or
null
if none is available. Available on
TYPE_CARD type methods.
country
:
String
(Read Only)
The country of this payment method, or
null
if none is available. Available on
TYPE_SEPA_DEBIT type methods.
ID
:
String
(Read Only)
The identifier of this payment method.
last4
:
String
(Read Only)
The last 4 digits of the credential for this payment method, or
null
if none is available.
Available on TYPE_CARD, TYPE_SEPA_DEBIT, and
TYPE_BANCONTACT type methods.
paymentMethodCategory
:
String
(Read Only)
The payment method category of this payment method, or
null
if none is available. Available
on TYPE_KLARNA type methods.
type
:
String
(Read Only)
The type of this payment method.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getBankCode()
:
String
Returns the bank code of this payment method, or
null
if none is available.
getBankName()
:
String
Returns the bank name of this payment method, or
null
if none is available.
getBranchCode()
:
String
Returns the bank branch code of this payment method, or
null
if none is available.
getCountry()
:
String
Returns the country of this payment method, or
null
if none is available.
getLast4()
:
String
Returns the last 4 digits of the credential for this payment method, or
null
if none is available.
getPaymentDetails(paymentInstrument
:
OrderPaymentInstrument)
:
SalesforcePaymentDetails
Returns the details to the Salesforce Payments payment for this payment method, using the given payment instrument.
getPaymentMethodCategory()
:
String
Returns the payment method category of this payment method, or
null
if none is available.Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβthis is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
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
getBank
getBank()
:
String
Returns the bank of this payment method, or
null
if none is available. Available on
TYPE_IDEAL and TYPE_EPS type methods.
Returns:
payment method bank
getBankCode
getBankCode()
:
String
Returns the bank code of this payment method, or
null
if none is available. Available on
TYPE_SEPA_DEBIT and TYPE_BANCONTACT type methods.
Returns:
payment method bank code
getBankName
getBankName()
:
String
Returns the bank name of this payment method, or
null
if none is available. Available on
TYPE_BANCONTACT type methods.
Returns:
payment method bank name
getBranchCode
getBranchCode()
:
String
Returns the bank branch code of this payment method, or
null
if none is available. Available on
TYPE_SEPA_DEBIT type methods.
Returns:
payment method bank branch code
getBrand
getBrand()
:
String
Returns the brand of this payment method, or
null
if none is available. Available on
TYPE_CARD type methods.
Returns:
payment method brand
getCountry
getCountry()
:
String
Returns the country of this payment method, or
null
if none is available. Available on
TYPE_SEPA_DEBIT type methods.
Returns:
payment method country
getID
getID()
:
String
Returns the identifier of this payment method.
Returns:
payment method identifier
getLast4
getLast4()
:
String
Returns the last 4 digits of the credential for this payment method, or
null
if none is available.
Available on TYPE_CARD, TYPE_SEPA_DEBIT, and
TYPE_BANCONTACT type methods.
Returns:
payment method credential last 4 digits
getPaymentDetails
Returns the details to the Salesforce Payments payment for this payment method, using the given payment
instrument.
Parameters:
paymentInstrument
-
payment instrument
Returns:
The payment details
getPaymentMethodCategory
getPaymentMethodCategory()
:
String
Returns the payment method category of this payment method, or
null
if none is available. Available
on TYPE_KLARNA type methods.
Returns:
payment method category