feat: added tpv form view
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<div>
|
||||
{% if order.status == 'PEN' %}
|
||||
<form name="from" action="{{ redsys_target_url }}" method="POST">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="Ds_SignatureVersion" value="{{ signature_version }}"/>
|
||||
<input type="hidden" name="Ds_MerchantParameters" value="{{ merchant_parameters }}"/>
|
||||
<input type="hidden" name="Ds_Signature" value="{{ signature }}"/>
|
||||
|
||||
{% if order.contact_email != '' %}
|
||||
<input
|
||||
class="mt-6 w-full rounded-md bg-primary-500 py-1.5 font-medium text-primary-50 hover:bg-primary-600 cursor-pointer"
|
||||
type="submit" value="Ir a pagar">
|
||||
{% else %}
|
||||
<input
|
||||
class="mt-6 w-full rounded-md bg-primary-500 py-1.5 font-medium text-primary-50 hover:bg-primary-600 cursor-pointer"
|
||||
type="submit" value="Ir a pagar" disabled>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user