$criteria->
setTitle('base-context-factory::customer-group'
);
$customerGroups =
$this->customerGroupRepository->
search($criteria,
$context);
/** @var CustomerGroupEntity $customerGroup */
$customerGroup =
$customerGroups->
get($groupId);
// loads tax rules based on active customer and delivery address
$taxRules =
$this->
getTaxRules($context);
// detect active payment method, first check if checkout defined other payment method, otherwise validate if customer logged in, at least use shop default
$payment =
$this->
getPaymentMethod($options,
$context,
$salesChannel);
// detect active delivery method, at first checkout scope, at least shop default method
$shippingMethod =
$this->
getShippingMethod($options,
$context,
$salesChannel);
[$itemRounding,
$totalRounding] =
$this->
getCashRounding($currency,
$shippingLocation,
$context);
$context =
new Context( $context->
getSource(),
[],
$currency->
getId(),
$context->
getLanguageIdChain(),