From 1ea6bb8b620ad40b3945aea1a7fc9509de2bd34a Mon Sep 17 00:00:00 2001 From: 4Giedrius <4giedrius@gmail.com> Date: Fri, 10 Apr 2015 15:29:50 +0300 Subject: [PATCH] Changed boxbilling theme template logic for payment adapters with type `form` --- .../boxbilling/html/mod_invoice_invoice.phtml | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/bb-themes/boxbilling/html/mod_invoice_invoice.phtml b/src/bb-themes/boxbilling/html/mod_invoice_invoice.phtml index 668989121..785abcf88 100644 --- a/src/bb-themes/boxbilling/html/mod_invoice_invoice.phtml +++ b/src/bb-themes/boxbilling/html/mod_invoice_invoice.phtml @@ -218,10 +218,28 @@ {% if invoice.status == 'unpaid' %} {% if invoice.gateway_id and not request.change_payment_method %} - + {% set payment = guest.invoice_payment({"gateway_id" : invoice.gateway_id, "hash":invoice.hash, "auto_redirect":request.auto_redirect }) %}
- {{ guest.invoice_payment({"gateway_id":invoice.gateway_id, "hash":invoice.hash, "auto_redirect":request.auto_redirect}).result|raw }} + {% if payment.type == 'html' %} + {{ payment.result|raw }} + {% endif %} + {% if payment.type == 'form' %} +

{% trans 'Redirecting to payment gateway..' %}

+
+ {% for key, value in payment.result %} + + {% endfor %} + +
+ + + {% endif %}