Subversion Repositories wpShopGermany4

Rev

Rev 7110 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7110 Rev 7756
Line 18... Line 18...
18
 
18
 
19
<p><?php echo __('Zahlung mittels der folgenden Zahlungsoption abschließen','wpsg'); ?></p>
19
<p><?php echo __('Zahlung mittels der folgenden Zahlungsoption abschließen','wpsg'); ?></p>
20
 
20
 
21
<div id="PayWithAmazon" style="<?php echo (($this->view['wpsg_mod_amazon']['state'] === wpsg_mod_amazon::ORDER_DONE_GO)?'display:none':''); ?>"></div>
21
<div id="PayWithAmazon" style="<?php echo (($this->view['wpsg_mod_amazon']['state'] === wpsg_mod_amazon::ORDER_DONE_GO)?'display:none':''); ?>"></div>
22
 
22
 
23
<script type="text/javascript">/* <![CDATA[ */
23
<script type="text/javascript">
24
 
24
 
25
	var authRequest; 
25
	var authRequest; 
26
 
26
 
27
	OffAmazonPayments.Button('PayWithAmazon', '<?php echo $this->get_option('wpsg_mod_amazon_seller_id'); ?>', {
27
	OffAmazonPayments.Button('PayWithAmazon', '<?php echo $this->get_option('wpsg_mod_amazon_seller_id'); ?>', {
28
		
28
		
Line 50... Line 50...
50
	        
50
	        
51
	} );
51
	} );
52
 
52
 
53
	var autoRun = setInterval(function(){ 
53
	var autoRun = setInterval(function(){ 
54
 
54
 
55
		if (jQuery('#PayWithAmazon img').length > 0)
55
		if (jQuery('#PayWithAmazon img').length > 0) {
56
		{
-
 
57
 
56
 
58
			//setTimeout(function(){ jQuery('#PayWithAmazon img').click(); }, 1000);
57
			//setTimeout(function(){ jQuery('#PayWithAmazon img').click(); }, 1000);
59
			clearInterval(autoRun);
58
			clearInterval(autoRun);
60
		
59
		
61
		}
60
		}
62
 
61
 
63
	}, 100);
62
	}, 100);
64
 
63
 
65
/* ]]> */</script>
64
</script>
66
	
65
	
67
<?php } ?>
66
<?php } ?>
68
 
67
 
69
<?php if ($this->view['wpsg_mod_amazon']['state'] === wpsg_mod_amazon::ORDER_DONE_GO) { ?>
68
<?php if ($this->view['wpsg_mod_amazon']['state'] === wpsg_mod_amazon::ORDER_DONE_GO) { ?>
70
 
69
 
Line 72... Line 71...
72
	
71
	
73
	<input type="hidden" name="order_id" value="<?php echo $_REQUEST['order_id']; ?>" />
72
	<input type="hidden" name="order_id" value="<?php echo $_REQUEST['order_id']; ?>" />
74
	<input type="hidden" name="wpsg_done" value="<?php echo $_REQUEST['wpsg_done']; ?>" />	
73
	<input type="hidden" name="wpsg_done" value="<?php echo $_REQUEST['wpsg_done']; ?>" />	
75
	<input type="hidden" name="amazon[OrderReference]" id="wpsg_mod_amazon_OrderReference" value="" />
74
	<input type="hidden" name="amazon[OrderReference]" id="wpsg_mod_amazon_OrderReference" value="" />
76
	
75
	
77
	<div id="walletWidgetDiv"></div>
76
	<div id="walletWidgetDiv"></div><br />
78
	
77
	
79
	<input type="submit" class="wpsg_button" name="submit" value="<?php echo __('Zahlung durchführen', 'wpsg'); ?>" id="wpsg_mod_amazon_doPayment" style="display:none;" />
78
	<input type="submit" class="wpsg_button" name="submit" value="<?php echo __('Zahlung durchführen', 'wpsg'); ?>" id="wpsg_mod_amazon_doPayment" style="display:none;" />
80
	<div class="wpsg_clear"></div>
79
	<div class="wpsg_clear"></div>
81
	
80
	
82
</form>
81
</form>
83
 
82
 
-
 
83
<script>
-
 
84
 
84
<script type="text/javascript">/* <![CDATA[ */
85
    jQuery('#walletWidgetDiv').show();
85
                                            
86
 
86
	new OffAmazonPayments.Widgets.Wallet( {
87
	new OffAmazonPayments.Widgets.Wallet( {
87
 
88
 
88
		sellerId: '<?php echo $this->get_option('wpsg_mod_amazon_seller_id'); ?>',
89
		sellerId: '<?php echo $this->get_option('wpsg_mod_amazon_seller_id'); ?>',
89
 
90
 
90
		onOrderReferenceCreate: function(orderReference) {
91
		onOrderReferenceCreate: function(orderReference) {
Line 115... Line 116...
115
	   	     
116
	   	     
116
		}
117
		}
117
	    	    
118
	    	    
118
	} ).bind("walletWidgetDiv");
119
	} ).bind("walletWidgetDiv");
119
	    	
120
	    	
120
/* ]]> */</script>
121
</script>
121
<?php } ?>
122
<?php } ?>
122
123