Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSalesChannelPaymentMethods example
throw
CartException::
customerNotLoggedIn
(
)
;
}
$page
=
$this
->genericLoader->
load
(
$request
,
$salesChannelContext
)
;
$page
= AccountPaymentMethodPage::
createFrom
(
$page
)
;
if
(
$page
->
getMetaInformation
(
)
)
{
$page
->
getMetaInformation
(
)
->
setRobots
(
'noindex,follow'
)
;
}
if
(
$page
->
getSalesChannelPaymentMethods
(
)
)
{
$page
->
setPaymentMethods
(
$page
->
getSalesChannelPaymentMethods
(
)
->
filterByActiveRules
(
$salesChannelContext
)
)
;
}
$this
->eventDispatcher->
dispatch
(
new
AccountPaymentMethodPageLoadedEvent
(
$page
,
$salesChannelContext
,
$request
)
)
;
return
$page
;
}
}