summaryrefslogtreecommitdiff
path: root/views/mods/mod_targo/order_done.phtml
blob: 67bcc27fffcaf20555b2bdd5f9f8d15706fe436e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php

	/**
 	* Dieses Template wird nach einer Targo Zahlung angezeigt
	*/

	if ($this->get_option('wpsg_mod_targo_url_use') == 0)
	{
		$url = $this->get_option('wpsg_mod_targo_url_live');
	}
	else
	{
		$url = $this->get_option('wpsg_mod_targo_url_test');
	}
?>

<p><?php echo __('Um den Betrag mit Targo zu bezahlen klicken Sie bitte auf folgendes Logo.', 'wpsg'); ?></p> 
<p>
	<a title="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" href="<?php echo $url; ?>">
		<img src="<?php echo $this->getRessourceURL('gfx/targologo.png'); ?>" align="left" alt="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" style="margin-right:7px;">
	 
	</a>
</p>

<form hidden class="wpsg_productform" id="wpsg_produktform" method="post" action="<?php echo $url ?>">
<?php $o_id = $this->view['o_id'];
	  $k_id = $this->view['k_id'];
	  $oOrder = wpsg_order::getInstance($o_id);
	  $brutto = $oOrder->getAmount(WPSG_BRUTTO);
	  $brutto = wpsg_round($brutto, 2);
	  /** @var wpsg_customer */
	  $oCustomer = wpsg_customer::getInstance($k_id);
	  /*
	  $geb1 = $oCustomer->getBirthdate("Y-m-d");
	  $geb2 = $oCustomer->getBirthdate();
	  $geb3 = $oCustomer->data["geb"];
	  $geb4 = wpsg_date("Y-m-d", strtotime($geb3));
	  $geb5 = strtotime($geb3);
	  $geb6 = strtotime("0000-00-00");
	  $geb6 = strtotime("1901-12-13");
	  $geb6 = strtotime("1901-12-14");
	  */ 
	  $dl = $this->view['targoLink'];
	  
	  $street = $oOrder-> getInvoiceStreetClear(true);
	  $nr = $oOrder-> getInvoiceStreetNr();
	  
	   
?>
<?php ?>
<?php ?>

<br /><br />
<b>Obligatorische Daten für Targobank</b><br />
<input type="text" id="koop_id" name="koop_id" value="<?php echo $this->get_option('wpsg_mod_targo_koop_id');?>" placeholder="koop_id"><br />
<input type="text" id="SessionID" name="sessionID" value="<?php echo session_id();?>" placeholder="sessionID"><br />
<input type="text" id="amount" name="amount" value="<?php echo $brutto;?>" placeholder="amount"><br />
<input type="text" id="dealerID" name="dealerID" value="<?php echo $this->get_option('wpsg_mod_targo_dealerid');?>" placeholder="dealerID"><br />
<input type="text" id="dealerText" name="dealerText" value="<?php echo $this->view['targoLink'];?>" placeholder="dealerText"><br />
<input type="text" id="documentno" name="documentno" value="<?php echo $this->view['o_id'];?>" placeholder="documentno"><br />


<b>Optionale Daten für Targobank</b><br />
<input type="text" id="dealerShopURL" name="dealerShopURL" value="" placeholder="dealerShopURL"><br />
<input type="text" id="dealerAbortURL" name="dealerAbortURL" value="" placeholder="dealerAbortURL"><br />
<input type="text" id="hash" name="hash" value="" placeholder="hash">(hashkey)<br />
<input type="text" id="" name="" value="" placeholder=""><br />


<b>Adressdaten aus Kundendaten</b><br />
<input type="text" id="surname" name="surname" value="<?php echo $oCustomer->getName();?>" placeholder="surname"><br />
<input type="text" id="firstname" name="firstname" value="<?php echo $oCustomer->getFirstname();?>" placeholder="firstname"><br />
<input type="text" id="street" name="street" value="<?php echo $oOrder->getInvoiceStreetClear(true);?>" placeholder="street"><br />
<input type="text" id="streetnumber" name="streetnumber" value="<?php echo $oOrder->getInvoiceStreetNr();?>" placeholder="streetnumber"><br />
<input type="text" id="zip" name="zip" value="<?php echo $oCustomer->getZip();?>" placeholder="zip"><br />
<input type="text" id="city" name="city" value="<?php echo $oCustomer->getCity();?>" placeholder="city"><br />
<input type="text" id="telnocode" name="telnocode" value="" placeholder="vorwahl"><br />
<input type="text" id="telno" name="telno" value="<?php echo $oCustomer->getPhone();?>" placeholder="telno"><br />
<input type="text" id="birthday" name="birthday" value="<?php echo $oCustomer->getBirthdate("Y-m-d");?>" placeholder="birthday"><br />
<input type="text" id="email" name="email" value="<?php echo $oCustomer->getEMail();?>"  placeholder="email"><br />

<input type="submit" id="submit" name="submit" value="submit" >

</form>


<?php if ($this->get_option('wpsg_mod_targo_autostart') == '1') { ?>
<script type="text/javascript">/* <![CDATA[ */
 
	jQuery(document).ready(function() { 
		window.setTimeout(function() {
			location.href = "<?php echo $url;?>";
		}, 1000);
	} );
	
/* ]]> */</script>
<?php } ?>