ExamGecko
Question list
Search
Search

List of questions

Search

Question 243 - Certified B2B Commerce Administrator discussion

Report
Export

What are two ways a developer should ensure that a store verifies shipping charges by using an external service?

A.
Create a flow using an action to retrieve shipping changes from an external service and update the Cart Delivery Group Methods.
Answers
A.
Create a flow using an action to retrieve shipping changes from an external service and update the Cart Delivery Group Methods.
B.
Create an Apex class implementing the sfdc_checkout.CartShippingCharges interface to retrieve shipping charges from an external services and register it as as the ..Calculation integration in the store administration.
Answers
B.
Create an Apex class implementing the sfdc_checkout.CartShippingCharges interface to retrieve shipping charges from an external services and register it as as the ..Calculation integration in the store administration.
C.
Create an Apex class to retrieve shipping charges from an external service and update the Cart Delivery group methods.
Answers
C.
Create an Apex class to retrieve shipping charges from an external service and update the Cart Delivery group methods.
D.
Create a trigger to retrieve shipping charges from an external service and update the Cart Delivery Group Methods.
Answers
D.
Create a trigger to retrieve shipping charges from an external service and update the Cart Delivery Group Methods.
Suggested answer: B, C

Explanation:

To ensure that a store verifies shipping charges by using an external service, a developer can use two ways:

Create an Apex class implementing the sfdc_checkout.CartShippingCharges interface to retrieve shipping charges from an external service and register it as the Shipping Calculation integration in the store administration. The sfdc_checkout.CartShippingCharges interface defines the methods that a custom shipping calculation class must implement to calculate shipping charges based on the cart items, delivery groups, and shipping methods. The developer can use this interface to call an external service API and return the shipping charges for each delivery group.The developer must also register the custom Apex class as the Shipping Calculation integration in the store administration, so that it can be used by the store to verify shipping charges during checkout1.

Create an Apex class to retrieve shipping charges from an external service and update the Cart Delivery Group Methods. The Cart Delivery Group Methods object stores the shipping methods and charges for each delivery group in a cart. The developer can create an Apex class that queries this object and updates the shipping charges based on the response from an external service API.The developer can invoke this Apex class from a trigger, a process, or a flow that runs when a cart is updated or submitted2.Reference:1: Add a Shipping Calculation Service for Commerce Stores - Salesforce Help3,2: CartDeliveryGroupMethod Object Reference - Salesforce Help4

asked 23/09/2024
Duane Innmon
24 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first