dw.order
Class PaymentMgr

PaymentMgr is used to access payment methods and payment
cards of the current site.
To access payment methods and payment cards explicitly, use methods getPaymentMethod(String) and getPaymentCard(String).
To access active payment methods use method getActivePaymentMethods().
To access applicable payment methods for a customer, country and/or payment amount use method getApplicablePaymentMethods(Customer, String, Number).
Properties
activePaymentMethods
:
List
(Read Only)
The sorted list of all enabled payment methods of the current
site, regardless of any customer group, country, payment amount or currency
restrictions. The payment methods are sorted as defined in the Business
Manager.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static getActivePaymentMethods()
:
List
Returns the sorted list of all enabled payment methods of the current site, regardless of any customer group, country, payment amount or currency restrictions.
static getApplicablePaymentMethods(customer
:
Customer, countryCode
:
String, paymentAmount
:
Number)
:
List
Returns the sorted list of all enabled payment methods of the current site applicable for the session currency, specified customer, country and payment amount.
static getPaymentCard(cardType
:
String)
:
PaymentCard
Returns the payment card for the specified cardType or null if no such card exists in the current site.
static getPaymentMethod(id
:
String)
:
PaymentMethod
Returns the payment method for the specified ID or null if no such method exists in the current site.
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
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.
Method Detail
getActivePaymentMethods
static getActivePaymentMethods()
:
List
Returns the sorted list of all enabled payment methods of the current
site, regardless of any customer group, country, payment amount or currency
restrictions. The payment methods are sorted as defined in the Business
Manager.
Returns:
List of enabled payment methods of current site
getApplicablePaymentMethods
static getApplicablePaymentMethods(customer
:
Customer, countryCode
:
String, paymentAmount
:
Number)
:
List
Returns the sorted list of all enabled payment methods of the current
site applicable for the session currency, specified customer, country and payment amount.
The payment methods are sorted as defined in the Business Manager.
A payment method is applicable if
- the method is restricted by customer group, and at least one of the groups of the specified customer is assigned to the method
- the method is restricted by billing country, and the specified country code is assigned to the method
- the method is restricted by payment amount for the session currency, and the specified payment amount is within the limits of the min/max payment amount defined for the method and the session currency
- the method is restricted by currency code, and the specified currency code matches session currency.
Parameters:
customer
-
Customer or null
countryCode
-
Billing country code or null
paymentAmount
-
Payment amount or null
Returns:
List of applicable payment methods of current site
getPaymentCard
Returns the payment card for the specified cardType or null if no such
card exists in the current site.
Parameters:
cardType
-
PaymentCard type
Returns:
PaymentCard or null