diff options
Diffstat (limited to 'views/mods/mod_amazon/order_done.phtml')
| -rw-r--r-- | views/mods/mod_amazon/order_done.phtml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/views/mods/mod_amazon/order_done.phtml b/views/mods/mod_amazon/order_done.phtml index a0eb843..80665c9 100644 --- a/views/mods/mod_amazon/order_done.phtml +++ b/views/mods/mod_amazon/order_done.phtml @@ -20,7 +20,7 @@ <div id="PayWithAmazon" style="<?php echo (($this->view['wpsg_mod_amazon']['state'] === wpsg_mod_amazon::ORDER_DONE_GO)?'display:none':''); ?>"></div>
-<script type="text/javascript">/* <![CDATA[ */
+<script type="text/javascript">
var authRequest;
@@ -52,8 +52,7 @@ var autoRun = setInterval(function(){
- if (jQuery('#PayWithAmazon img').length > 0)
- {
+ if (jQuery('#PayWithAmazon img').length > 0) {
//setTimeout(function(){ jQuery('#PayWithAmazon img').click(); }, 1000);
clearInterval(autoRun);
@@ -62,7 +61,7 @@ }, 100);
-/* ]]> */</script>
+</script>
<?php } ?>
@@ -74,15 +73,17 @@ <input type="hidden" name="wpsg_done" value="<?php echo $_REQUEST['wpsg_done']; ?>" />
<input type="hidden" name="amazon[OrderReference]" id="wpsg_mod_amazon_OrderReference" value="" />
- <div id="walletWidgetDiv"></div>
+ <div id="walletWidgetDiv"></div><br />
<input type="submit" class="wpsg_button" name="submit" value="<?php echo __('Zahlung durchführen', 'wpsg'); ?>" id="wpsg_mod_amazon_doPayment" style="display:none;" />
<div class="wpsg_clear"></div>
</form>
-<script type="text/javascript">/* <![CDATA[ */
-
+<script>
+
+ jQuery('#walletWidgetDiv').show();
+
new OffAmazonPayments.Widgets.Wallet( {
sellerId: '<?php echo $this->get_option('wpsg_mod_amazon_seller_id'); ?>',
@@ -117,5 +118,5 @@ } ).bind("walletWidgetDiv");
-/* ]]> */</script>
+</script>
<?php } ?>
\ No newline at end of file |
