Targetpay betalen...
Hoe kan ik er zo een link in bouwen na het betalen naar het link gaan ??
BV voor registratie...
Dit kan toch ook met sms of niet ??
Hoe kan ik er zo een link in bouwen na het betalen naar het link gaan ??
BV voor registratie...
Dit kan toch ook met sms of niet ??
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Pincode betaallijn - Targetpay</title>
<style type="text/css">
body{
background-color:#cccccc;
font-family:Arial, Helvetica, sans-serif;
color:#2a2a2a;
}
.betaling{
background-color:#ff8800;
width:400px;
border: 1px solid #2a2a2a;
text-align:center;
padding:10px;
font-size:12px;
}
.call{
font-size:16px;
}
.allert{
background-color:#fff000;
font-weight:bold;
}
</style>
</head>
<body>
[COLOR= #0000BB]<?php
$nummer[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]#####[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$kosten_per_call[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]#,##[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$layoutcode[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]#####[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$testmodule[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]0[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<h1>Pincode betaallijn - Targetpay</h1>
<div class=betaling>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<form action="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" method=post>
<span class=call>Bel naar <b>$nummer</b> (€ $kosten_per_call per gesprek)</span><br><br>
Tijdens het gesprek wordt een 6-cijferige pincode opgelezen.<br> Toets de pincode hieronder in en klik op verder.<br><br>
<input type=text name=code size=6> <input type=submit value=verder name=betaal>
</form>"[/COLOR][COLOR= #007700];
}
.[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$paycode[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$url[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.targetpay.nl/api/ivr-pincode?rtlo=$layoutcode&code=$paycode&payline=$nummer&country=31&test=$testmodule"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$ch[/COLOR] [COLOR= #007700]=[/COLOR] curl_init[COLOR= #007700]();[/COLOR]
curl_setopt[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_URL[COLOR= #007700],[/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700]);[/COLOR]
curl_setopt[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_RETURNTRANSFER[COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
curl_setopt[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_TIMEOUT[COLOR= #007700],[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$reactie[/COLOR] [COLOR= #007700]=[/COLOR] curl_exec[COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/switch"]switch[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$reactie[/COLOR][COLOR= #007700]) {
case[/COLOR] [COLOR= #DD0000]"000 OK"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Oke! De betaling is voldaan."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br><br>Hier de betaalde content of iets dergelijks."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];[/COLOR]
vertaling van de foutcode[COLOR= #007700].
case[/COLOR] [COLOR= #DD0000]"102 No layout code specified"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen layout code opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"103 No pincode specified"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen pincode opgegeven. Probeer het nogmaals."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"104 Pincode length incorrect"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> De lengte van de ingevoerde pincode is niet correct."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"105 Internal Error: no connection to IVR"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is een interne fout opgetreden. Er is geen connectie mogelijk met het betaalsysteem. Probeer het later nogmaals"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"106 Pincode already checked or not paid"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Deze pincode is al eerder gebruikt of nog niet betaald. Probeer het nogmaals"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"107 Layoutcode unknown"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is een onbekende layoutcode opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"108 No country specified"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen land opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"109 No payline specified"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen betaalnummer opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"700 No pincode specified"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen pincode opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"702 Incorrct pincode"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> De ingevoerde pincode is niet correct. Probeer het nogmaals"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"703 Incorrect pincode"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> De ingevoerde pincode is niet correct. Probeer het nogmaals"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"705 Incorrect payline"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen correcte betaallijn opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"707 Payment not succesfull"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> De betaling is niet succesvol verlopen. Probeer het nogmaals."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"900 Invalid request"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen geldige aanvraag gedaan. Probeer het nogmaals"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"901 Incorrect affiliate code"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen geldige affiliate code opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
case[/COLOR] [COLOR= #DD0000]"902 Incorrect layoutcode"[/COLOR][COLOR= #007700]:[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=allert> ! </span> Er is geen geldige layoutcode opgegeven. Hierdoor kan de betaling niet worden voltooid."[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$reactie[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]"000 OK"[/COLOR][COLOR= #007700]){[/COLOR][URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br> <a href="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]">« Terug</a>
<br><br><font size=1>Opmerking: Betaalde pincodes zijn circa 24 uur geldig!</font>"[/COLOR][COLOR= #007700];}
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</div>"[/COLOR][COLOR= #007700];[/COLOR]
?>
</body>
</html>