ExamGecko
Question list
Search
Search

List of questions

Search

Question 169 - Certified B2B Commerce Administrator discussion

Report
Export

What interface must a developer implement to override Tax in Checkout?

A.
sfdc.checkout.CartTaxCalculatlons
Answers
A.
sfdc.checkout.CartTaxCalculatlons
B.
sfdc.commerce.CheckoutTaxCalculations
Answers
B.
sfdc.commerce.CheckoutTaxCalculations
C.
sfdc_commerce.TaxCalculations
Answers
C.
sfdc_commerce.TaxCalculations
D.
sfdc.commerce.CartTaxCalculations
Answers
D.
sfdc.commerce.CartTaxCalculations
E.
sfdc_checkout.TaxCalculations
Answers
E.
sfdc_checkout.TaxCalculations
Suggested answer: B

Explanation:

To override the tax calculation logic in B2B Commerce for Visualforce, a developer must implement the sfdc.commerce.CheckoutTaxCalculations interface. This interface defines two methods: calculateTax and calculateTaxForCart. The calculateTax method takes a CC Cart Delivery Group Method record as an input and returns a CC Cart Item record of type Tax. The calculateTaxForCart method takes a CC Cart record as an input and returns a list of CC Cart Item records of type Tax. These methods are invoked by the B2B Commerce for Visualforce framework during checkout to calculate the tax amount for each cart delivery group and the entire cart respectively.Reference:Add a Tax Calculation Service,Calculate Tax at Checkout, B2B Commerce for Visualforce Developer Guide

asked 23/09/2024
Asif Khan
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first