7753 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template welches den Zahlungsdienstleister nach Bestellabschluss einbindet
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
$view = $this->view['wpsg_mod_micropayment_paywindow'];
|
|
|
8 |
|
|
|
9 |
?>
|
|
|
10 |
|
|
|
11 |
<div class="wpsg_mod_micropayment_paywindow_order_done">
|
|
|
12 |
|
|
|
13 |
<p>
|
|
|
14 |
<?php echo __('Klicken Sie auf folgendes Banner um Ihre Bestellung zu bezahlen.', 'wpsg'); ?>
|
|
|
15 |
</p>
|
|
|
16 |
|
|
|
17 |
<br />
|
|
|
18 |
|
|
|
19 |
<a href="<?php echo $view['url']; ?>" title="<?php echo __('Hier Ihre Bestellung bezahlen.', 'wpsg'); ?>">
|
|
|
20 |
<img src="<?php echo $view['logo']; ?>" alt="<?php echo $view['title']; ?>" />
|
|
|
21 |
</a>
|
|
|
22 |
|
|
|
23 |
</div>
|
|
|
24 |
|
|
|
25 |
<?php /* if (wpsg_isSizedString($this->view['wpsg_mod_micropayment']['payLink'])) { ?>
|
|
|
26 |
<?php echo __('Klicken Sie auf das folgende Logo um ihre Bestellung zu bezahlen.', 'wpsg'); ?>
|
|
|
27 |
<br /><br />
|
|
|
28 |
|
|
|
29 |
<a href="<?php echo $this->view['wpsg_mod_micropayment']['payLink']; ?>"><img src="<?php echo $this->view['wpsg_mod_micropayment']['logo']; ?>" alt="<?php echo $this->view['wpsg_mod_micropayment']['title']; ?>" /></a>
|
|
|
30 |
|
|
|
31 |
<?php if ($this->get_option('wpsg_mod_micropayment_paystart') == '1') { ?>
|
|
|
32 |
<script type="text/javascript">
|
|
|
33 |
|
|
|
34 |
jQuery(document).ready(function() {
|
|
|
35 |
window.setTimeout(function() {
|
|
|
36 |
location.href = "<?php echo $this->view['wpsg_mod_micropayment']['payLink']; ?>";
|
|
|
37 |
}, 1000);
|
|
|
38 |
} );
|
|
|
39 |
|
|
|
40 |
</script>
|
|
|
41 |
<?php } ?>
|
|
|
42 |
|
|
|
43 |
<?php } else { ?>
|
|
|
44 |
|
|
|
45 |
<p><?php echo __('Bitte geben Sie ihre Kreditkarteninformationen (Kartennummer, Gültigkeitsdatum und Prüfnummer) in folgende Felder ein. Die Daten werden an Micropayment übermittelt und nicht durch uns gespeichert oder ausgewertet.', 'wpsg'); ?></p>
|
|
|
46 |
|
|
|
47 |
<form method="post" id="wpsg_mod_micropayment_creditcard">
|
|
|
48 |
|
|
|
49 |
<div class="micropayment_card">
|
|
|
50 |
<div class="front card">
|
|
|
51 |
<div class="chip"></div>
|
|
|
52 |
<div class="number"><input placeholder="<?php echo __('Kreditkartennummer', 'wpsg'); ?>" type="text" name="number" /></div>
|
|
|
53 |
<div class="bankname"><?php echo __('Kreditkarte - Vorderseite', 'wpsg'); ?></div>
|
|
|
54 |
<div class="name"><?php echo __('Max Mustermann', 'wpsg'); ?></div>
|
|
|
55 |
<div class="validthrough"><?php echo __('Gültig bis', 'wpsg'); ?>:</div>
|
|
|
56 |
<div class="valid">
|
|
|
57 |
<select name="expiryMonth">
|
|
|
58 |
<?php for ($i = 1; $i <= 12; $i ++) { ?>
|
|
|
59 |
<option value="<?php echo $i; ?>"><?php echo str_pad($i, 2, '0', STR_PAD_LEFT); ?>
|
|
|
60 |
<?php } ?>
|
|
|
61 |
</select>
|
|
|
62 |
<span>/</span>
|
|
|
63 |
<select name="expiryYear">
|
|
|
64 |
<?php for ($i = date('Y'); $i <= date('Y') + 10; $i ++) { ?>
|
|
|
65 |
<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
|
|
|
66 |
<?php } ?>
|
|
|
67 |
</select>
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|
|
|
70 |
|
|
|
71 |
<div class="back card">
|
|
|
72 |
<div class="bankname"><?php echo __('Kreditkarte - Rückseite', 'wpsg'); ?></div>
|
|
|
73 |
<div class="blackmagnetic"></div>
|
|
|
74 |
<div class="number"><?php echo __('HC600214C', 'wpsg'); ?></div>
|
|
|
75 |
<div class="signature"><?php echo __('Unterschrift Max Mustermann', 'wpsg'); ?></div>
|
|
|
76 |
<div class="sign"><input type="text" name="cvc2" value="" placeholder="<?php echo __('Prüfnummer', 'wpsg'); ?>" /></div>
|
|
|
77 |
</div>
|
|
|
78 |
|
|
|
79 |
<input type="button" id="wpsg_mod_micropayment_pay_button" class="wpsg_button" value="<?php echo __('Zahlung starten', 'wpsg'); ?>" />
|
|
|
80 |
|
|
|
81 |
</div>
|
|
|
82 |
|
|
|
83 |
</form>
|
|
|
84 |
|
|
|
85 |
<script type="text/javascript">
|
|
|
86 |
|
|
|
87 |
jQuery(document).ready(function() {
|
|
|
88 |
|
|
|
89 |
jQuery('#wpsg_mod_micropayment_pay_button').bind('click', function() {
|
|
|
90 |
|
|
|
91 |
var form_data = jQuery('#wpsg_mod_micropayment_creditcard').serialize();
|
|
|
92 |
|
|
|
93 |
jQuery('.micropayment_card input, .micropayment_card select').prop('disabled', true);
|
|
|
94 |
|
|
|
95 |
jQuery.ajax( {
|
|
|
96 |
url: wpsg_ajax.ajaxurl,
|
|
|
97 |
data: {
|
|
|
98 |
action: 'ajax',
|
|
|
99 |
wpsg_plugin: 'wpsg_mod_micropayment',
|
|
|
100 |
module_action: 'pay',
|
|
|
101 |
form_data: form_data,
|
|
|
102 |
order_id: <?php echo $this->view['o_id']; ?>
|
|
|
103 |
},
|
|
|
104 |
success: function(data) {
|
|
|
105 |
|
|
|
106 |
if (data === "1")
|
|
|
107 |
{
|
|
|
108 |
|
|
|
109 |
alert('<?php echo __('Vielen Dank für Ihre Zahlungsreservierung.', 'wpsg'); ?>');
|
|
|
110 |
location.href = '<?php echo get_permalink($this->get_option('wpsg_mod_micropayment_successPage')); ?>';
|
|
|
111 |
|
|
|
112 |
}
|
|
|
113 |
else
|
|
|
114 |
{
|
|
|
115 |
|
|
|
116 |
alert(data);
|
|
|
117 |
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
jQuery('.micropayment_card input, .micropayment_card select').prop('disabled', false);
|
|
|
121 |
|
|
|
122 |
},
|
|
|
123 |
error: function(rdata, data)
|
|
|
124 |
{
|
|
|
125 |
|
|
|
126 |
alert("<?php echo __('Unerwarteter Serverfehler!', 'wpsg'); ?>");
|
|
|
127 |
|
|
|
128 |
}
|
|
|
129 |
} );
|
|
|
130 |
|
|
|
131 |
return false;
|
|
|
132 |
|
|
|
133 |
} );
|
|
|
134 |
|
|
|
135 |
} );
|
|
|
136 |
|
|
|
137 |
</script>
|
|
|
138 |
|
|
|
139 |
<?php } */ ?>
|