summaryrefslogtreecommitdiff
path: root/views/mods/mod_si/cannotorder.phtml
blob: a3ff5d5e6aa9ed6868b05896ea00f419c799f350 (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
<?php

	/**
	 * Integration in die Bestellzusammenfassung
	 */

	$bic = wpsg_getStr($this->view['basket']['checkout']['mod_autodebit_bic'], '');

	$arParam = array(
		'user_id' => $this->get_option('wpsg_mod_si_user_id'), // Ihre Kundennummer bei SOFORT, z.B. "12345"
		'project_id' => $this->get_option('wpsg_mod_si_project_id'), // Ihre Projektnummer des SOFORT Ident Projekts, z.B. "54321"
		'firstname' => $this->view['basket']['checkout']['vname'], // Vorname des Kunden, z.B. "Max"
		'lastname' => $this->view['basket']['checkout']['name'], // Nachname des Kunden, z.B. "Mustermann"
		'street' => $this->view['basket']['checkout']['strasse'], // Straße und Hausnummer des Kunden, z.B. "Unter den Linden 77"
		'city' => $this->view['basket']['checkout']['ort'], // Wohnort des Kunden, z.B. "Berlin"
		'zipcode' => $this->view['basket']['checkout']['plz'], // PLZ des Kunden, z.B. "10117"
		'birthday' => date('Y-m-d', strtotime($this->view['basket']['checkout']['plz'])), // Geburtsdatum des Kunden im Format YYYY-MM-DD, z.B. "1978-09-24"
		'address_country_id' => $this->view['basket']['land']['kuerzel'], // 2-stellige Abkürzung des Landes des Kunden im ISO-3166-1 Format, z.B. "DE"
		'bank_code' => $bic, // BIC (DEPRECATED: oder Bankleitzahl) der Bankfiliale des Kunden
		'account_country_id' => $this->view['basket']['land']['kuerzel'], // 2-stellige Abkürzung des Landes der Bankfiliale des Kunden im ISO-3166-1 Format, z.B. "DE"
		'user_variable_0' => $this->view['temp_order_id'], // Kundenvariable (optional), z.B. "123456"
		'user_variable_1' => '', // Kundenvariable (optional)
		'user_variable_2' => '', //	Kundenvariable (optional)
		'user_variable_3' => '', //	Kundenvariable (optional)
		'user_variable_4' => '', //	Kundenvariable (optional)
		'user_variable_5' => '' //	Kundenvariable (optional) 
	);

	$arParam['hash'] = $this->view['wpsg_mod_si']['modul']->getSendHash($arParam);
	 
?>

</form>

<form method="post" id="wpsg_mod_si_form" action="https://www.sofort.com/payment/agecheck">
    	
    <?php foreach ($arParam as $key => $value) { ?>
    <input type="hidden" name="<?php echo $key; ?>" value="<?php echo $value; ?>" />
    <?php } ?>
    	
   	<input type="submit" value="<?php echo __('Altersverifizierung', 'wpsg'); ?>" />
    
</form>

<form method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>">