{% load cms_tags sekizai_tags i18n %} {% trans "An unknown error has occurred. Please try again, or notify us if you continue to have an issue." as unknown_error %} {% url "customizeGiftCertificate" as certificate_url %}
{# These div elements are the placeholder elements that are replaced by the SqPaymentForm's iframes. #}
{% trans "Pay Now with Square" %}
{# After the SqPaymentForm generates a card nonce, *this* form POSTs the generated card nonce to your application's server. #}
{% csrf_token %} {# Whenever a nonce is generated, it's assigned as the value of this hidden input field. #} {# The idempotency key is generated on the server side before this page is rendered so that duplicate charges should not happen. #} {% if user.is_authenticated %} {% endif %} {% if invoice %} {% if invoice.email %} {% endif %} {% elif allow_amount_entry %} {% endif %} {% if transaction_type == "Gift Certificate" and certificate_url %} {% else %} {% endif %}
{# This is the div in which Square places the iframe with everything it needs to create a card nonce. #}
{% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "css" %} {% endaddtoblock %}