{% load i18n mezzanine_tags shop_tags staticfiles %} {% comment %} Set up braintree.js to create a payment_method_nonce for payment processing. Based on cartridge-pinpayments. See also https://github.com/braintree/braintree-web/blob/master/README.md and https://developers.braintreepayments.com/guides/client-sdk/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 %} {% if settings.BRAINTREE_PAYPAL_ACTIVATE %} {% endif %}