A
A
astrotrain2015-12-17 13:27:28
PHP
astrotrain, 2015-12-17 13:27:28

How to check payment on bitcoin-wallet?

Hello! There is such a task - there is a platform to which you need to attach payment via btc. The work will be done with bitcoind via json rpc. The question is of this nature: how to actually implement the possibility of payment and verification of the correctness of the transaction? I haven’t worked much with bitcoin before, so here’s how I see it:
1) give the client the address of our wallet (or generate a new one for each transaction?) 2) ask
bitcoind for confirmation of the receipt of funds
the client received payment, how to determine the amount that came and make the appropriate notes in the database. In general, I do not quite understand how to be here. I'd be happy for any advice, thanks for your feedback!

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexander Aksentiev, 2015-12-17
@Sanasol

https://poiuty.com/index.php?title=%D0%9F%D1%80%D0...

M
Mark Doe, 2015-12-17
@mourr

1. Create a separate wallet for each client
2. Using bitcoind or blockr.io, for example, check transactions for this wallet (with an interval of, for example, 30 seconds)
3. In the transaction parameters (if any), there will be a sender and an amount - if the amount didn't fit - repeat step 2
4. If the amount fits - we credit the user with an internal balance, forget about this wallet
. It is also important to check at least two confirmations before crediting. And then anything happens

I
Ivan Tikhonov, 2015-12-18
@polym0rph

An article almost three years ago, but suddenly it will help: Organizing the acceptance of Bitcoin as payment for goods ...

Y
Yuriy Ivanov @Yuriy, 2015-12-20
Ivanov

It is easier to use the service of accepting payments in crypto-currencies (not just bitcoin): https://c-cex.com/?id=merch
Implementation example: www.freestaking.com/stakestick

V
vladblackdog, 2017-04-18
@vladblackdog

Isn't it easier to use any service that has already done everything for you? For example https://apibtc.com/

Y
Yuri Bogoslavets, 2020-05-10
@uranik

I am against the use of third-party services, so only through the bitcoin json rpc api I pull the listreceivedbyaddress function and look at transactions with arrivals to the desired address in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question