We have a website with some digital goods. A user to buy from there is required to buy some credit, with BTC. After he buys the credit, the script has to load his account with the amount of currency (USD) he purchased with BTC.
So here we have the HTML form:
<form name="bitcoin" method="post" action="btc.php"> <strong><font color="grey">$</font></strong> <input name="member" value="<?php echo $_SESSION['gdusername'];?>" type="hidden"> <input name="amount" size="10" value="" type="text"> <input name="btnPMPay" id="btnPMPay" value="Add Balance" type="submit"> </form>
My problem is that this PHP script doesn't do the following.
-
Do not interrogate the blockchain to see if the transfer was made although there are 0 confirmations when the user hits the confirm button.
-
Do not UPDATE into the database of the credit purchased by the customer after he hits the confirm button.
-
Even though I entered a value higher that 5$ he still keep telling me that the minimum payment value is 5$.
Can anyone help me with this?