{% set initRouteParam = {'paymentMethodId': paymentMethod.id} %} {% if order is defined and order.getCheckoutCompletedAt is not null and order.tokenValue is not null %} {% set initRouteParam = initRouteParam|merge({'orderToken': order.tokenValue}) %} {% endif %}