Think I figured a way round it but unsure how to code it
in BuyerTable I have added a paid and complete column so when the payment is made via PayPal the paid column gets updated to a 1 for Yes, I have set it to default of 0 for No and then when they submit the job advert the complete column gets updated to a 1, again I have set that to a default of 0
it's the coding where I am getting stuck, I am completing the payment and takes me to the return url but the paid column is not being updated to a 1
below is the coding I have from my process.php file that does the PayPal API that adds the transaction to the db
Code:
$insert_row = $mysqli->query("INSERT INTO BuyerTable
(BuyerName,BuyerEmail,TransactionID,ItemName,ItemNumber,ItemAmount)
VALUES ('$buyerName','$buyerEmail','$TransactionID','$ItemName','$ItemNumber', '$ItemTotalPrice')");
$update_row = $mysqli->query("UPDATE BuyerTable SET paid = 'Y' WHERE TransactionID = '$TransactionID'");
Bookmarks