Bitcoin Forum
June 29, 2024, 09:19:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: (PHP) How to create a function where users can withdraw and deposit  (Read 739 times)
Durieel (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
July 26, 2015, 07:16:16 PM
 #1

Hello!

As i was searching abit and couldt find any useful information, so back to the main subject.

Iam making a game, but the thing is that iam stuck on making function deposit/withdraw and balance. I have no idea how to settle this, i want to use 3rd company like blockchain. And ofc make it to paying pople once per day, but i have no freaking idea how to do this.  Huh

Any good advices?
money.investment
Member
**
Offline Offline

Activity: 62
Merit: 10

Micro Investment with Guaranteed Returns


View Profile WWW
July 26, 2015, 09:39:24 PM
 #2

Hello!

As i was searching abit and couldt find any useful information, so back to the main subject.

Iam making a game, but the thing is that iam stuck on making function deposit/withdraw and balance. I have no idea how to settle this, i want to use 3rd company like blockchain. And ofc make it to paying pople once per day, but i have no freaking idea how to do this.  Huh

Any good advices?

Deposits can be collected by a watch only address. Balance for any address could be queried from public APIs of many services - Blockr, blockcypher, blockchain.info etc.

As you want to use a third party, they would require you to hash the payment data (amounts and corresponding addresses of withdrawal transactions) with security token given by them. Then send this data via https, on confirmation you will be given resp. txid of the transaction.

You could use cron job to schedule payments once per day.

If you want to do manual withdrawals, then Mycelium Gear is perfect for you.

Micro Investment with Guaranteed Returns  1DX26yvjEj2fXGK1pgfGeThWycDgjqZ4sv
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!