shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

pp_braintree_order.twig (846B)


      1 <h3>{{ text_payment_info }}</h3>
      2 <div class="alert alert-success" style="display: none;"><i class="fa fa-check-circle"></i></div>
      3 <div id="table-action"></div>
      4 
      5 <script type="text/javascript"><!--
      6 function getTransaction() {
      7 	$.ajax({
      8 		url: 'index.php?route=extension/payment/pp_braintree/getTransaction&user_token={{ user_token }}',
      9 		dataType: 'html',
     10 		data: {
     11 			order_id: '{{ order_id }}'
     12 		},
     13 		beforeSend: function() {
     14 			$('#button-filter').button('loading');
     15 
     16 			$('#table-action').html('<i class="braintree-loading fa fa-spinner fa-spin fa-5x" style="text-align: center; margin: 0 auto; width: 100%; font-size: 5em;"></i>');
     17 		},
     18 		complete: function() {
     19 			$('#button-filter').button('reset');
     20 		},
     21 		success: function(html) {
     22 			$('#table-action').html(html);
     23 		}
     24 	});
     25 }
     26 
     27 getTransaction();
     28 //--></script>