Use an IPN (Instant Payment Notification), or put the value in the return URL (for example, "file.php?price=1.25").
It really depends on what your planning to do ^^ In your case I would do the return url, the code should look like:
PHP Code:
<?php $price = $_GET['price']; // Get the variable from the URL. if(is_numeric($price)){ // If it's a number, otherwise they may be hacking you. echo "Thanks for your payment of {$price}"; } else { // If it's a possible hack...Could be by error though. echo "Thank you for your payment."; // You may want to log the IP/Session here. } ?>
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
Last edited by rogem002; 01-21-2008 at 11:28 AM..
|