Customer Service Center - Cannot create an order via custom action due to currency mismatch error
Trailblazer Community

Customer Service Center - Cannot create an order via custom action due to currency mismatch error

Commerce Cloud API/OCAPI , Commerce Cloud Platform

Last updated 16 days ago ·Reference W-9712497 ·Reported By 1 users

In Review

Summary
Attempting to create an order in a different currency than USD via a custom action implemented in Customer Service Center may fail due to a currency mismatch between the basket currency and the session currency.

ERROR PipelineCallServlet|...|Sites-Site|CSC-CustomAction|PipelineCall|... com.demandware.beehive.bts.internal.orderprocess.BasketValidator Sites-Site BUSINESSMGR - Order could not be created. Cause: currency mismatch. Either the basket is in a currency not allowed by the site. Basket currency is GBP and allowed currencies are [GBP]. Or the session currency may not match the basket currency. Session currency is USD.

Repro
1. Create a new site in a sandbox that uses a single Allowed currency other than USD e.g. EUR or GBP
2. Create a custom action in CSC that creates an order using OrderMgr.createOrder()
3. Attempt to place an order using this custom action
4. Notice the error logged in the BM UI and in Log Center also

Workaround
None

Reported By (1)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.