{% load i18n mezzanine_tags checkout_tags static %} {% comment %} Set up braintree.js to create a payment_method_nonce for payment processing. Based on cartridge-pinpayments. See also https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v2. NOTE: This requires the following modifications to the 'checkout.html' template: id='checkout-form' on the form element name='next' on the 'Next' submit button. If you override the 'checkout.html' template, make sure your template also contains these changes. {% endcomment %} {% compress js %} {% if settings.BRAINTREE_PAYPAL_ACTIVATE %} {% get_order_total as order_total %} {% endif %} {% endcompress %}