Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: matt_boyd on May 04, 2013, 07:33:21 PM



Title: Writing a payment system in PHP using blockchain API.
Post by: matt_boyd on May 04, 2013, 07:33:21 PM
Hey guys,

I am trying to code a visual dice game, found here; http://matt-boyd.co.uk/dice_revamp. I was just wondering would anyone know how to do the payments so that when a person pays into a wallet, it updates their "credits" let's say 1 per satoshi. So they have their balance and everytime they click the submit button and the result is wrong it would withdraw 1 credit. If they get it right, they triple their 1 credit and so it becomes 3. Lastly, I need to know how to code a withdrawal system that would work with the credits? Thanks for any help, that would be awesome. Matt.


Title: Re: Writing a payment system in PHP using blockchain API.
Post by: minzie on May 14, 2013, 01:24:09 PM
Are you asking how to use an API to check balances and transfer money out of wallets, or are you asking how to do calculations in PHP?