{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %}
{# {{dump(action)}} #}
{#
{% if order.paymentState in ['awaiting_payment'] and order.getPayments()[0].getMethod().getId() in [10,8,5,9,6] %}
{% set path = path('sylius_shop_order_show', {'tokenValue': order.tokenValue}) %}
{{ buttons.default(path('sylius_shop_order_show', {'tokenValue': order.tokenValue}), 'sylius.ui.pay', null, 'credit card alternative', 'fluid blue') }}
{% endif %}
{% if data.paymentState in ['awaiting_payment'] and data.getPayments()[0].getMethod().getId() in [10,8,5,9,6] %}
{% set path = options.link.url|default(path(options.link.route|default(grid.requestConfiguration.getRouteName('show')), options.link.parameters|default({'id': data.id}))) %}
{{ buttons.default(path, action.label, null, action.options.icon|default('credit card alternative'), 'blue') }}
{% endif %}
#}