<?php $this->headMeta()->setName('robots', 'noindex,nofollow'); ?>
<?php $title = ___('Processing your Invoice'); $this->setLayout('layout.phtml'); ?>
<?php echo $this->blocks('pay/top') ?>
<?php include $this->_script('_receipt.phtml'); ?>
<?php echo $form ?>
<?php echo $this->blocks('pay/bottom') ?>
<?php include $this->_script('js.country_state.js'); ?>
<script>
    jQuery(function($){
        $('#pay-form').change(function(){
            $.post(amUrl('/pay/preview'), $(this).serialize(), function(html){
                $('.am-receipt').replaceWith(html)
            })
        })
    })
</script>