Bitcoin Forum
May 05, 2024, 07:57:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: DIY storefront - query network to confirm payment?  (Read 292 times)
sawdust (OP)
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!
1714939063
Hero Member
*
Offline Offline

Posts: 1714939063

View Profile Personal Message (Offline)

Ignore
1714939063
Reply with quote  #2

1714939063
Report to moderator
1714939063
Hero Member
*
Offline Offline

Posts: 1714939063

View Profile Personal Message (Offline)

Ignore
1714939063
Reply with quote  #2

1714939063
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714939063
Hero Member
*
Offline Offline

Posts: 1714939063

View Profile Personal Message (Offline)

Ignore
1714939063
Reply with quote  #2

1714939063
Report to moderator
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


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.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!