Bitcoin Forum
September 25, 2018, 08:22:57 AM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: DIY storefront - query network to confirm payment?  (Read 182 times)
sawdust
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 18, 2017, 11:00:15 PM
 #1

By day, I'm a web developer, but almost a complete novice to bitcoin.

I have website for a creative project that offers free downloads, and accepts tips/donations via a bitcoin address.

I'm thinking of also offering "premiums" in exchange for bitcoin, and would like not to involve a third-party processor if possible.

Could I simply have my web app send a bitcoin payment address to the customer, monitor the network for confirmation of payment, and then release the goods?

How would I monitor for this confirmation? 

Are there any good articles on this?

I'm probably most comfortable with python, if that matters.

Thanks!
1537863777
Hero Member
*
Offline Offline

Posts: 1537863777

View Profile Personal Message (Offline)

Ignore
1537863777
Reply with quote  #2

1537863777
Report to moderator
1537863777
Hero Member
*
Offline Offline

Posts: 1537863777

View Profile Personal Message (Offline)

Ignore
1537863777
Reply with quote  #2

1537863777
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537863777
Hero Member
*
Offline Offline

Posts: 1537863777

View Profile Personal Message (Offline)

Ignore
1537863777
Reply with quote  #2

1537863777
Report to moderator
vv181
Sr. Member
****
Offline Offline

Activity: 588
Merit: 266



View Profile
November 19, 2017, 03:49:27 AM
 #2

There are many options for that, the hard way is you can run your own bitcoin full node then integrate it with python bitcoin library and your website, but yeah, its cost a lot and inefficient. The simple way is you can use much available bitcoin payment processor and use their API.
for further reference here is the link: https://www.deepdotweb.com/2017/03/28/tutorial-accept-bitcoin-payments-website/

EDIT: since you didn't want third-party payments processor, I guest run your own node is the solution.

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

                   BitCloak Bitcoin Mixer  
  BTC & BCH | API| MULTIADDRESS| PGP PROOF|  FAST MIX |  ESCROW|  MORE !

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

HCP
Hero Member
*****
Offline Offline

Activity: 728
Merit: 925

<insert witty quote here>


View Profile
November 19, 2017, 04:02:11 AM
 #3

It you want lightweight payment processing... without the "third party" aspect, you might want to try "Mycelium Gear" (https://gear.mycelium.com/)

The bitcoins go directly into the wallet of your choosing, it generates "unique" addresses for customers (generated from your wallets xpub)... and apparently it has an API and does callbacks so your website gets a notification if the payment has been made.

And it's the low low price of free! Wink

DISCLAIMER: I have NOT used this system for live payments on a live website... I hacked up some code and used TestNet to test it out... it seemed to work. I have no idea if this is a "safe" system... or how well it works on a live mainnet system.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!