dw.extensions.payments
Class SalesforcePaymentMethod
Object
dw.extensions.payments.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
getBank() : String
Returns the bank of this payment method, or null if none is available.
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.
getBrand() : String
Returns the brand 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.
getID() : String
Returns the identifier of this payment method.
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.
getType() : String
Returns the type of this payment method.
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.
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.
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.
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
getPaymentDetails(paymentInstrument : OrderPaymentInstrument) : SalesforcePaymentDetails
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

getType
getType() : String
Returns the type of this payment method.
Returns:
payment method type

β™₯
Notifications pending to read