N
N
noprof2015-01-03 03:11:07
bitcoin
noprof, 2015-01-03 03:11:07

I want to accept bitcoin payments, how to implement, did anyone come across?

There is a game server.
I want to accept payment for donations from foreign players + automatically, if the payment is confirmed, add donations to these same players in the database.
I saw a couple of examples on different game servers.
After a lot of googling, I can't find anything adequate.
Someone faced specifically with such a task:
1.) Given a form with two fields and a donate button.
- 1 Field with the name of the character on which to accrue funds
- How much in $ to donate (automatically convert to bitcoins on the day of payment)
Donate.
The player presses a button, he is asked to transfer so many bitcoins to such and such an address. The player transfers, the transaction is confirmed 3-6 times -> and then the callback script is already on our website with the subsequent accrual of values ​​to the database.
Has anyone implemented something like this? Are there modules available? Are there any "ready-made" crutches \ forms for receiving donations? If there is, maybe someone knows, tell me please.
PS the question is off topic, are there those who can organize this for a fee? If so, please PM. Thank you.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
E
Eugene, 2015-01-03
@Nc_Soft

Put bitcoind on your server
https://bitcoin.org/en/download
When making a payment, generate a new wallet, issue it to the user, he pays for it.
When a new block arrives, bitcoind pulls your script, which is set in the bitcoin.conf daemon config
as an example
blocknotify=/usr/bin/php /usr/share/bitcoind/blocknotify.php %s
In this script, run through transactions and accrue loot to users.

V
Vladimir Fokin, 2015-01-03
@vfokin

https://blockchain.info/ru/api
As an example. There are many services for receiving bitcoins.

A
Alex Yu, 2015-01-28
@r00tbear

There are no ready-made solutions of this kind (based on the new introductory comments) ... But I saw something similar somehow among WordPress plugins.
The bottom line is that you should have a donation table in your database, where data is placed on the user ID, the address assigned to it for replenishment and the balance, while the address is generated on your server in the bitcoind daemon, through which you can track incoming transactions to addresses (or via api to the blockchain https://blockchain.info/api) and upon receipt of several confirmations, the transaction amount is added to the value of the field with the user's balance.

K
khava, 2018-05-09
@khava

here is a link that will help you https://bitnell.com)

V
vamshop, 2018-05-09
@vamshop

You can take VamShop, BitCoin and Ethereum payment modules are already built in there.
Here is a description of how it is configured: blog.vamshop.ru/2018/03/15/ethereum-in-vamshop

C
CBuH, 2018-05-23
@CBuH

gourl.io or coingate.com

V
vsviridenko, 2018-10-20
@vsviridenko

Hello. I use cryptocurrencies to receive (Bitcoin, Litecoin, Dogecoin, Ethereum...) - paykassa.pro - I like that they have very fast Russian-language support and favorable conditions for online business. In addition, they constantly add new coins - I advise.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question