Author

Topic: (PHP) How to create a function where users can withdraw and deposit (Read 756 times)

member
Activity: 62
Merit: 10
Micro Investment with Guaranteed Returns
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.
newbie
Activity: 38
Merit: 0
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?
Jump to: