ExamGecko
Question list
Search
Search

List of questions

Search

Question 242 - Certified B2B Commerce Administrator discussion

Report
Export

A developer is working on a storefront that needs to use a sophisticated pricing engine hosted as a service outside the org. Assuming security and trusts have been established, which two actions must the developer take?

A.
Make a call to the service
Answers
A.
Make a call to the service
B.
Use External Objects
Answers
B.
Use External Objects
C.
Implement the sfdc_checkout.PriceCalculations
Answers
C.
Implement the sfdc_checkout.PriceCalculations
D.
Implement the sfdc_checkout.CartPriceCalculations
Answers
D.
Implement the sfdc_checkout.CartPriceCalculations
Suggested answer: A, C

Explanation:

To use a sophisticated pricing engine hosted as a service outside the org, the developer must take the following actions:

Make a call to the service. The developer must use an Apex class or a Lightning web component to make a callout to the external service using the appropriate protocol, method, headers, parameters, and body. The developer must also handle the response from the service and parse the data as needed. The developer must ensure that the external service is added to the Remote Site Settings in Salesforce to allow the callout.

Implement the sfdc_checkout.PriceCalculations interface. The developer must implement this interface in an Apex class to override the default pricing logic of B2B Commerce and use the custom pricing logic from the external service. The developer must implement the methods of this interface, such as calculateCartPrice, calculateLineItemPrice, calculateShippingPrice, and so on. The developer must also register the custom pricing class in CC Admin under Storefront > Pricing > Pricing Engine.Reference:

Callouts from Lightning Web Components

Create a Custom Pricing Engine

asked 23/09/2024
Jasper John Cecilio
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first