Bitcoin Forum
May 11, 2024, 08:43:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Advise on accepting payment to my wallet  (Read 1188 times)
zoufou (OP)
Member
**
Offline Offline

Activity: 114
Merit: 10


View Profile
March 06, 2017, 09:18:28 PM
 #1

Hi guys !

I'm building a website where i accept btc payments, here's the key elements to describe my process to accepting payments:
  • I generate a pool of addresses and keep them available in DB, to avoid asking for new address whenever a user wants to pay
  • I pick up an unused address whenever a user asks for payment, the address is flagged as 'reserved' so no one can take it, even if no payments are received on it
  • I wait for the walletnotify to tell my app a transaction were initiated on that address, will mark the address as 'having an ongoing transaction' and will wait for blocknotifications till reaching desired number of confirmations (3)
  • Everytime blocknotify calls my app i go check all 'ongoing transactions' within the received block and test for confirmation count, if >3 then transaction is marked done and payment is approved

My questions are:
  • Is this a good, secure and fast approach for accepting payments ?
  • In case user is sending a second payment to the same address, what's the best way to handle it ?

Thx !
1715460199
Hero Member
*
Offline Offline

Posts: 1715460199

View Profile Personal Message (Offline)

Ignore
1715460199
Reply with quote  #2

1715460199
Report to moderator
1715460199
Hero Member
*
Offline Offline

Posts: 1715460199

View Profile Personal Message (Offline)

Ignore
1715460199
Reply with quote  #2

1715460199
Report to moderator
1715460199
Hero Member
*
Offline Offline

Posts: 1715460199

View Profile Personal Message (Offline)

Ignore
1715460199
Reply with quote  #2

1715460199
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715460199
Hero Member
*
Offline Offline

Posts: 1715460199

View Profile Personal Message (Offline)

Ignore
1715460199
Reply with quote  #2

1715460199
Report to moderator
btcdevil
Legendary
*
Offline Offline

Activity: 1302
Merit: 1027


View Profile
March 06, 2017, 10:36:20 PM
 #2

If you want to keep track of the customers who are sending the payment to which address then you have to give a new address to each customer and when ever they are sending to the address you will be knowing about it. So this way you can keep the record of the users who are doing business with your more times.

Apart from that what you are doing is also good but in that way you will be needing lot of address for each customer and it will be very tough work to keep records. So you have to see the alternate of this or keep a single wallet address for all customers and keep records of customers purchases
vandres
Member
**
Offline Offline

Activity: 158
Merit: 12

UniFox


View Profile WWW
March 07, 2017, 01:08:30 AM
 #3

I don't get the point on this process.

Why giving every customer a new address?

divinemaniac
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
March 07, 2017, 01:14:13 AM
 #4

I think that instead of marking an address as reserved, you should put the address in that particular user's record in the users table and delete that particular address from the addresses pool. This would make it more managed.

If you run out of addresses, you can create a new one and add it to the user's record instead of adding it to the pool.
harrishedge
Member
**
Offline Offline

Activity: 114
Merit: 10


View Profile
March 07, 2017, 06:20:06 AM
 #5

Generating new addresses for payment everytime a user asks for it let's them think your service a unique type really
avatar_kiyoshi
Legendary
*
Offline Offline

Activity: 1106
Merit: 1000



View Profile
March 07, 2017, 12:37:51 PM
 #6

Quote
My questions are:
Is this a good, secure and fast approach for accepting payments ?
In case user is sending a second payment to the same address, what's the best way to handle it ?

That's good I think.
Secure is depends on your wallet, you should improve your wallet, buy hardware wallet.
Fast, it's depends on the transaction fees, it's back to the buyer, I think you should put a warning to buyer about transaction fees.

For case buyer sending 2nd payment, well you don't delete the address, buried to archive. And for every transaction whatever is come from same buyer, that should generate new address.
zoufou (OP)
Member
**
Offline Offline

Activity: 114
Merit: 10


View Profile
March 07, 2017, 05:50:04 PM
 #7

Quote
My questions are:
Is this a good, secure and fast approach for accepting payments ?
In case user is sending a second payment to the same address, what's the best way to handle it ?

That's good I think.
Secure is depends on your wallet, you should improve your wallet, buy hardware wallet.
Fast, it's depends on the transaction fees, it's back to the buyer, I think you should put a warning to buyer about transaction fees.

For case buyer sending 2nd payment, well you don't delete the address, buried to archive. And for every transaction whatever is come from same buyer, that should generate new address.

What's the point with hardware wallets ? i dont get it where everyone says hw wallets are more secure than soft wallets ...
avatar_kiyoshi
Legendary
*
Offline Offline

Activity: 1106
Merit: 1000



View Profile
March 07, 2017, 07:54:19 PM
 #8

Quote
My questions are:
Is this a good, secure and fast approach for accepting payments ?
In case user is sending a second payment to the same address, what's the best way to handle it ?

That's good I think.
Secure is depends on your wallet, you should improve your wallet, buy hardware wallet.
Fast, it's depends on the transaction fees, it's back to the buyer, I think you should put a warning to buyer about transaction fees.

For case buyer sending 2nd payment, well you don't delete the address, buried to archive. And for every transaction whatever is come from same buyer, that should generate new address.

What's the point with hardware wallets ? i dont get it where everyone says hw wallets are more secure than soft wallets ...

If you want to running a serious business, I think you should take a look hardware wallet, because have more security feature rather than soft wallet.
https://en.bitcoin.it/wiki/Hardware_wallet
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!