Howto use


test.php
<?php
require_once('TweakPay.api.php');
$apikey "4b28a5253c839a5101e0c72332580b57d6a649f1";
$address "EWZ7jQ9ak4pKCqZwxWbwmoQ2FR6G2AiCEy";
$amount 100;
$returnurl "http://website.nl/test.php";
$TweakPay = new TweakPay;
if (isset(
$_GET["tx"]) && $api->check_tx() == true) {
        echo 
'Payment is done!';
}
else {
    
$u $api->makeurl($apikey$addr5"http://daiman.nl/donate.php");
    echo 
'<a href="'.$u.'">Pay '.$amount.'</a>';
}
?>

First you have to make the url:
$api->makeurl($apikey, $address, $amount, $returnurl);

If the payment is finished the client will be send to returnurl, we send ?tx={specialhash} to your returnurl to check:
http://website.nl/test.php?tx=n0f0923nfj09214fj902490

You can check if payment is done succesfully:
if (isset($_GET["tx"]) && $api->check_tx() == true) {
echo 'Payment is done!';
}