SalesChannelContextService::SHIPPING_METHOD_ID =>
$blockedId,
] );
} return;
} if ($error instanceof PaymentMethodChangedError
) { $paymentMethodRepository =
$this->
getContainer()->
get('payment_method.repository'
);
$blockedId =
$this->
getPaymentMethodIdByName($error->
getOldPaymentMethodName());
$newId =
$this->
getPaymentMethodIdByName($error->
getNewPaymentMethodName());
$paymentMethodRepository->
update([ [ 'id' =>
$blockedId,
'availabilityRuleId' =>
$availabilityRuleId,
],
], Context::
createDefaultContext());
$salesChannelRepository->
update([ [