{% if payment_pp_express_incontext_disable != 1 %}
<div class="buttons">
  <div class="pull-right">
    <a id="button-confirm" href="{{ continue }}"></a>
  </div>
</div>
<script type="text/javascript"><!--
window.paypalCheckoutReady = function () {
  paypal.checkout.setup('{{ username }}', {
    container: 'button-confirm',
    environment: '{{ environment }}'
  });
};
//--></script>
<script src="//www.paypalobjects.com/api/checkout.js" async></script>
{% else %}
<div class="buttons">
  <div class="pull-right">
    <a href="{{ continue }}" class="btn btn-primary" id="button-confirm" data-loading-text="{{ text_loading }}">{{ button_continue }}</a>
  </div>
</div>
<script type="text/javascript"><!--
    $('#button-confirm').on('click', function() {
        $('#button-confirm').button('loading');
    });
//--></script>
{% endif %}
