PaymentTypeEventContainer
class PaymentTypeEventContainer
Class PaymentTypeEventContainer is injected as alligator.payment.event.container. This container is connecting manager to other services
Constants
| AVAILABLE_PAYMENT_TYPES_CACHED |
Available payment types cache key |
Methods
No description
If $checkoutSettingsId is provided, only active will be cached (with different key)
Get payment types from cache
Get card payment types
Applay state transition to provided step optional order passed
Set flashbag message to session
Get payment type by name
Get last unfinished order for logged user
Get order from database by id
Generate url for route by route name
Generate redirect response for route
Get one step checkout from cache
Send order state changed mail
Find all pricelists
Get current user
Format ammount using settings for decimals and separator
Get current checkout settings
Get current checkout settings id
Details
at line 40
__construct(ContainerInterface $container)
at line 52
mixed
setPaymentTypesToCache(array $paymentTypes, null $checkoutSettingsId = null)
If $checkoutSettingsId is provided, only active will be cached (with different key)
at line 86
array
getPaymentTypesFromCache()
Get payment types from cache
at line 95
mixed
getCardPaymentTypes()
Get card payment types
at line 107
mixed
applyTransition(mixed $step, null $order = null)
Applay state transition to provided step optional order passed
at line 116
setFlashbagMessage(string $message)
Set flashbag message to session
at line 127
mixed
getPaymentTypeByName(string $type)
Get payment type by name
at line 136
mixed
getLastUnfinishedOrderForUser()
Get last unfinished order for logged user
at line 147
mixed
getOrderDBById(int|string $id)
Get order from database by id
at line 169
string
generateUrlForRoute(string $route)
Generate url for route by route name
at line 181
RedirectResponse
generateRedirectResponseForRoute(string $route, array $params = array())
Generate redirect response for route
at line 190
mixed
getCashOneStepCheckout()
Get one step checkout from cache
at line 202
sendEditedStateOrderMail(Order $order, string $type = 'edit', array $additionalMails = array(), null $cardOrderInfo = null)
Send order state changed mail
at line 216
mixed
findAllPricelists()
Find all pricelists
at line 225
mixed
getLoggedUser()
Get current user
at line 262
string
getFormattedAmount(double $total)
Format ammount using settings for decimals and separator
at line 277
array
getCurrentCheckoutSettings()
Get current checkout settings
at line 286
int|null
getCurrentCheckoutSettingsId()
Get current checkout settings id