-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheckout-config.txt
29 lines (25 loc) · 1.25 KB
/
checkout-config.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!-- ##### begin ifthenpay checkout config ##### -->
{% assign metodo_pagamento = order.gateway | upcase %}
{% if metodo_pagamento == "MULTIBANCO" or metodo_pagamento =="GIFT_CARD, MULTIBANCO" %}
<!--Apenas gera o valor pago por multibanco (ex. gift card ou descontos)-->
{% for transaction in transactions %}
{% assign gateway_mb = transaction.gateway | upcase %}
{% if gateway_mb == "MULTIBANCO" %}
{% assign valor_mb = transaction.amount %}
{% endif %}
{% endfor %}
<br/>
<br/>
<table style="border: 1px solid #2196F3; color: white; padding: 0px; border-collapse: collapse; width: 320px; height: 150px">
<tr>
<td colspan="2" style="border-bottom: 1px solid #2196F3; padding: 10px 0px; font-size: small; text-align:center; background: #2196F3; ">Pagamento por Multibanco ou Homebanking</td></tr><tr><td style="padding: 25px 0px;">
<img src="https://ifthenpay.com/mb.png" style="margin-left: 10px;"/>
</td>
<td>
<img src="https://ifthenpay.com/shopify/generateRef.ashx?entidade=[ENTIDADE]&subentidade=[SUBENTIDADE]&order_id={{order_number}}&order_total={{valor_mb | money_without_currency}}" style="margin-right: 10px;" />
</td>
</tr>
</table>
<br/><br/>
{% endif %}
<!-- ##### end ifthenpay checkout config ##### -->