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'); } ?>

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(); ?> getTitle(); } else { $titel = $oCustomer->title; } $isotitel = ''; if (($titel == "Herr") || ($titel == "Frau")) $isotitel = toIso($titel); $dt = $oCustomer->getBirthdate("Y-m-d"); if ($oCustomer->geb == '0000-00-00' || strtotime($dt) === false) { $bd = ''; } else { $bd = $oCustomer->getBirthdate("Y-m-d"); } function toIso($string) { //return mb_convert_encoding($string, "ISO-8859-1"); return utf8_decode(utf8_encode($string)); } $hash = ''; $key = '123456'; $key = $this->get_option('wpsg_mod_targo_hashkey'); //$param = "amount=5000&koop_id=testidkk89&dealerText=https%3A%2F%2Fwww.targobank.de&documentno=&". // "dealerShopURL=&dealerAbortURL=&dealerID=123456&birthday=1970-12-31"; $arr = Array("koop_id" => $this->get_option('wpsg_mod_targo_koop_id'), "SessionID" => session_id(), "amount" => $brutto, "dealerID" => $this->get_option('wpsg_mod_targo_dealerid'), "dealerText" => ($this->view['targoLink']), "documentno" => $this->view['o_id'], "gender" => $isotitel, "surname" => toIso($oCustomer->getName()), "firstname" => toIso($oCustomer->getFirstname()), "street" => toIso($oOrder->getInvoiceStreetClear(true)), "streetnumber" => toIso($oOrder->getInvoiceStreetNr()), "zip" => toIso($oCustomer->getZip()), "city" => toIso($oCustomer->getCity()), "telnocode" => '', "telno" => toIso($oCustomer->getPhone()), "birthday" => $bd, "email" => toIso($oCustomer->getEMail()), "dealerShopURL" => ($this->get_option('wpsg_mod_targo_dealerShopURL')), "dealerAbortURL" => ($this->get_option('wpsg_mod_targo_dealerAbortURL')) ); $param = http_build_query($arr); $hash = hash_hmac( 'sha256', $param, $key); // HMAC-SHA256 // Test //$hash = "85ef6ddce9bbebffa250d6f8183f3f727af5f9fda879b73aa0685eb2d9386e70"; ?>

Obligatorische Daten für Targobank






Adressdaten aus Kundendaten











Optionale Daten für Targobank


(hashkey)
get_option('wpsg_mod_targo_autostart') == '1') { ?>