{if $stripe_order.valid == 1}
{l s='Congratulations, your payment has been approved and your order has been saved under the reference' mod='stripejs'} {$stripe_order.reference|escape:'html':'UTF-8'}.
{else} {if $order_pending}
{l s='Unfortunately we detected a problem while processing your order and it needs to be reviewed.' mod='stripejs'}

{l s='Do not try to submit your order again, as the funds have already been received. We will review the order and provide a status shortly.' mod='stripejs'}

({l s='Your Order\'s Reference:' mod='stripejs'} {$stripe_order.reference|escape:'html':'UTF-8'})
{else}
{l s='Sorry, unfortunately an error occured during the transaction.' mod='stripejs'}

{l s='Please double-check your credit card details and try again or feel free to contact us to resolve this issue.' mod='stripejs'}

({l s='Your Order\'s Reference:' mod='stripejs'} {$stripe_order.reference|escape:'html':'UTF-8'})
{/if} {/if}