Skip to content

Commit 2aff168

Browse files
committed
adding PIX button to checkout
1 parent 5da8cd9 commit 2aff168

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

pythonpro/checkout/templates/django_pagarme/pagarme.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,20 @@ <h5>{{ payment_item.name }}</h5>
9292
<div class="product-price">{{ payment_item.max_installments }}x de {{ payment_item.max_installment_amount_after_interest|cents_to_brl}}*/Mês</div>
9393
<div class="txt-gray">* {{ payment_item.price|cents_to_brl}} à vista</div>
9494
</div>
95-
</div><button data-wait="Enviando seu pedido" id="w-node-d2c34207d2e9-1eb108a8" class="submit-button w-button pay-button">Finalizar Compra</button>
95+
</div><button data-wait="Enviando seu pedido" id="w-node-d2c34207d2e9-1eb108a8" class="submit-button w-button pay-button">Finalizar Compra com Cartão de Crédito</button>
96+
<button class="submit-button w-button pay-button" target="_blank" href="https://api.whatsapp.com/send?phone=5512991415422&text=Olá! Gostaria de finalizar minha compra '{{ payment_item.name }}' através do PIX. Você pode me ajudar?" style="
97+
-ms-grid-row: span 1;
98+
grid-row-start: span 1;
99+
-ms-grid-row-span: 1;
100+
grid-row-end: span 1;
101+
-ms-grid-column: span 6;
102+
grid-column-start: span 6;
103+
-ms-grid-column-span: 6;
104+
grid-column-end: span 6;
105+
background-color: #32BCAD;
106+
box-shadow: 0 4px 0 0 #2b998d;
107+
color: #fff;
108+
height: 35px;">Finalizar Compra com PIX</button>
96109

97110
<div id="w-node-014eae02debd-1eb108a8" class="separator"></div>
98111
<div id="w-node-222d67e0f07c-1eb108a8" class="form-footer">

0 commit comments

Comments
 (0)