Lid |
|
TotempaaltJ n00b
Hij bedoelt te zeggen dat die een code wilt hebben in zijn script waarmee die de betaal procedure kan overslaan.
<?
include ("class.sms.php");
$rtlo = 12345; // Replace with your TargetPay layoutcode
$country = 31; // Replace with country code of the end-consumer
$adminCode = "blabla"; // Dit is de admin code waarmee je gratis er doorheen kan.
$keyword = "go ******"; // Keyword, see: www.targetpay.nl/advanced/sms-pincode/keyword
$shortcode = "3010"; // Shortcode, see: www.targetpay.nl/advanced/sms-pincode/keyword
$mySMS = new SMS ($rtlo, $country);
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
if ($_POST['code'] == $adminCode || $result = $mySMS->CheckPincode ($_POST['code'], $keyword, $shortcode))
{
// Je betaling is verwerkt
}
else
{
// Betaling mislukt of code komt niet overeen.
}
}
else
{
echo "SMS <b>$keyword</b> (€ 0,90 p.o.b., 1 bericht) naar <b>3010</b>.<Br>";
echo "U ontvangt per SMS uw toegangscode. Vul de toegangscode hieronder in:<br><br>";
echo "<form method=\"post\" action=\"\">";
echo "<input type=\"text\" name=\"code\" size=\"6\" maxlength=\"6\">";
echo "<input type=\"submit\" value=\" OK \">";
echo "</form>";
}
?>
<? include ("class.sms.php"); $rtlo = 12345; // Replace with your TargetPay layoutcode $country = 31; // Replace with country code of the end-consumer $adminCode = "blabla"; // Dit is de admin code waarmee je gratis er doorheen kan. $keyword = "go ******"; // Keyword, see: www.targetpay.nl/advanced/sms-pincode/keyword $shortcode = "3010"; // Shortcode, see: www.targetpay.nl/advanced/sms-pincode/keyword $mySMS = new SMS ($rtlo, $country); if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_POST['code'] == $adminCode || $result = $mySMS->CheckPincode ($_POST['code'], $keyword, $shortcode)) { // Je betaling is verwerkt } else { // Betaling mislukt of code komt niet overeen. } } else { echo "SMS <b>$keyword</b> (€ 0,90 p.o.b., 1 bericht) naar <b>3010</b>.<Br>"; echo "U ontvangt per SMS uw toegangscode. Vul de toegangscode hieronder in:<br><br>"; echo "<form method=\"post\" action=\"\">"; echo "<input type=\"text\" name=\"code\" size=\"6\" maxlength=\"6\">"; echo "<input type=\"submit\" value=\" OK \">"; } ?>
|