Author

Topic: Writing a payment system in PHP using blockchain API. (Read 1207 times)

member
Activity: 110
Merit: 10
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?
sr. member
Activity: 246
Merit: 250
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.
Jump to: