a few tips on setup new payment system:
- create google.inc.php, put the setting here
- create google.php, put the form and the data which will be sent to google here
- create 2 instant payment notification, one for upgrade link, and one for invoice
in google.check-invoice.php, just call this function
Code:
MarkAsPaid($val_id);
in google.check-upgrade.php, call the following functions
Code:
// save payment data
SavePayment($val_username, $val_type, $_POST['item_name'], $_POST['payment_gross'], time());
// upgrade link
UpgradeLink($val_id, $val_type, $val_period);
Of course, you need to adjust the paramenter/variable above with the codes you have