Ik weet niet of ik in het goede topic zit?
Ik heb een nieuwe API voor de targetpay betaalsystemen aan het maken.
Ik doe dit helemaal gratis, en geef die hier vrij op CP.
Een stukje voorbeeld.
PHP
<?php
// (c) jackie @ criminalspoint
class ivrMethod
{
public function __construct()
{
//nothing
}
public function startPayment()
{
//link from https://www.targetpay.com/info/0900-docu-ppc
$url = file_get_contents("http://api.targetpay.nl/payment/startpayment.asp?rtlo=54321&ct=PC&co=31&tb=70&iphash=1234567890");
list($result, $paycode, $payline) = explode("|", $url);
if($result == "000 OK")
{
return true;
}
else
{
return false;
}
}
}
$ivrMethod = new ivrMethod();
if($ivrMethod->startPayment())
{
echo("Het is gelukt");
}
else
{
echo("Het is mislukt.");
}
?>
Toon Meer
Je mag me altijd op fouten wijzen en tips geven.
Greedz,
Jackie chan (c)