Hallo,
Wir haben uns bei paybest registriert um haben nicht die leiseste ahnung wie das nun geht das man bei der bezahlung auf paybest gehen kann und dan automatischt der preis in paybest gesetzt wird kennt sich jemand mit paybest aus fals ja bitte melden hier der code:
<?php
$price = 150; // Der Preis incl. Mwst in Cent
$customerId = "1"; // Ihre Paybest-Kundennummer
$shopId = "1"; // Die Nummer des Shops
$privateKey1 = "..."; // Hier den ersten Paybest-Key einfuegen
$target = "demo"; // Zielfenster für Paybest
$payingMode = "0"; // Muss immer Null sein
$sessionId = "..."; // Kennung fuer Ihre Transaktionsverwaltung eingeben
$shopUrl = "/paybest2.php"; // Seite, an die Paybest die Kunden zurueckleitet
$products = "source.zip"; // Das Produkt, welches Sie verkaufen wollen
$hash = md5($price.$customerId.$target.$payingMode.$shopId.$privateKey1.
$sessionId.$shopUrl.$products);
// Berechnung des Kontroll-Parameters
header("Content-type: text/html");
echo("
<html>
<head>
<title>Download</title>
<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\">
</head>
<body bgcolor=\"#FFFFFF\">
<form action=\"https://Server1.4FriendsOnly.com/jsp/pay.jsp\"
target=\"_self\" method=\"post\">
<input type=\"hidden\" name=\"price\" value=\"$price\">
<input type=\"hidden\" name=\"customerId\" value=\"$customerId\">
<input type=\"hidden\" name=\"shopId\" value=\"$shopId\">
<input type=\"hidden\" name=\"target\" value=\"$target\">
<input type=\"hidden\" name=\"payingMode\" value=\"$payingMode\">
<input type=\"hidden\" name=\"sessionId\" value=\"$sessionId\">
<input type=\"hidden\" name=\"shopUrl\" value=\"$shopUrl\">
<input type=\"hidden\" name=\"products\" value=\"$products\">
<input type=\"hidden\" name=\"hash\" value=\"$hash\">
Hier zum Download der Software
<input type=\"submit\" value=\"Bezahlen mit Paybest ...\">
Preis: 1.50 Euro
</form>
</body>
</html>
");
?>