<script type="text/javascript">
 var bodegaWebStore = window.BodegaWebStore;
 if (bodegaWebStore){
 if (bodegaWebStore.storeTransactionComplete) {
 var currencyCode = 'USD';
 var totalPrice = #{order.subTotalUSD.textValue};
 var orderId = '#{order.reference}';

window.addEventListener(
 'load',
 function() {
 bodegaWebStore.storeTransactionComplete(
 totalPrice, currencyCode, orderId);
 },
 false
 );
 }
 }
</script>