Bitcoin Forum
May 09, 2024, 08:38:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: wifihotspot to accept bitcoin payments  (Read 2781 times)
Gnaffel (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 17, 2011, 10:07:09 AM
Last edit: May 17, 2011, 10:57:00 PM by Gnaffel
 #1

I have a wifihotspot running on openwrt that accepts automated paypal payments for internet acces, but i would like to start accepting Bitcoins automated.

I have set Bitcoin payments as a new option, so if someone wants to pay with Bitcoins just email me, nothing automated yet.

I am looking for a php script to accept Bitcoin payments with the latest MtGox rates that i can build into the site or openwrt.

Anybody here with knowledge to bitcoin payment processing in php/html or others?


Edit sources:
Lets go for anonymous internet acces from any router, paid with bitcoin:

Router firmware with paypal/credit card payment: http://sourceforge.net/projects/chillifire/
Bitcoin payment processor: https://github.com/jalder/Zen-Cart-Bitcoin-Payment-Module
Bitcoin payment processor: https://github.com/mikegogulski/bitcoin-virtuemart
1715287080
Hero Member
*
Offline Offline

Posts: 1715287080

View Profile Personal Message (Offline)

Ignore
1715287080
Reply with quote  #2

1715287080
Report to moderator
1715287080
Hero Member
*
Offline Offline

Posts: 1715287080

View Profile Personal Message (Offline)

Ignore
1715287080
Reply with quote  #2

1715287080
Report to moderator
1715287080
Hero Member
*
Offline Offline

Posts: 1715287080

View Profile Personal Message (Offline)

Ignore
1715287080
Reply with quote  #2

1715287080
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715287080
Hero Member
*
Offline Offline

Posts: 1715287080

View Profile Personal Message (Offline)

Ignore
1715287080
Reply with quote  #2

1715287080
Report to moderator
1715287080
Hero Member
*
Offline Offline

Posts: 1715287080

View Profile Personal Message (Offline)

Ignore
1715287080
Reply with quote  #2

1715287080
Report to moderator
1715287080
Hero Member
*
Offline Offline

Posts: 1715287080

View Profile Personal Message (Offline)

Ignore
1715287080
Reply with quote  #2

1715287080
Report to moderator
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
May 17, 2011, 11:02:08 AM
 #2

There is a php library that you might be able to use, but remember you have to unblock access of bitcoin clients to the internet before payment so that they can pay you.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Gnaffel (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 17, 2011, 12:35:22 PM
 #3

There is a php library that you might be able to use, but remember you have to unblock access of bitcoin clients to the internet before payment so that they can pay you.

Quote
There is a php library that you might be able to use
-Which php library are you refering to?

Quote
you have to unblock access of bitcoin clients to the internet before payment so that they can pay you
-Do you mean a secondairy bitcoind with rpcallow=* ;that makes sense. I wouldn't like to set my premier bitcoinclient open to everyone
sebastian
Full Member
***
Offline Offline

Activity: 129
Merit: 118


View Profile
May 17, 2011, 01:01:35 PM
 #4

Gnaffel: No. What he are talking about, is that you need to allow bitcoin clients to access the internet, eg you need to open port 6667 to irc.lfnet.org and port 8333 to * in your payment gateway, hotspot, firewall, whatsoever thing you are using to prevent users who have not paid from accessing the internet.

Also beware of tunneling users, in other words, users who SSH's or SSL's over 8333 to bypass payment and surf for free. A wise option in this way can then be to have a empty bitcoind running (with no coins inside), which your firewall NATs all :8333 traffic to. This bitcoind will then be like a "proxy" to the world. The user does not need to send the coins to that bitcoind, thats bitcoind only connects the wifi bitcoin network to the wide bitcoin network. and passes transactions further and back. Then you don't need to have 6667 open. (Or you could set up a fake IRC server which all IRC traffic is NATed to, which only have one channel #bitcoin, which reports your gateway, eg 192.168.0.1 as a bitcoin node).

Dont allow rpcallow=*! Its enough that they get a connection to a bitcoin node.
Gnaffel (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 17, 2011, 02:26:55 PM
Last edit: May 20, 2011, 04:11:26 PM by Gnaffel
 #5

Gnaffel: No. What he are talking about, is that you need to allow bitcoin clients to access the internet, eg you need to open port 6667 to irc.lfnet.org and port 8333 to * in your payment gateway, hotspot, firewall, whatsoever thing you are using to prevent users who have not paid from accessing the internet.

Also beware of tunneling users, in other words, users who SSH's or SSL's over 8333 to bypass payment and surf for free. A wise option in this way can then be to have a empty bitcoind running (with no coins inside), which your firewall NATs all :8333 traffic to. This bitcoind will then be like a "proxy" to the world. The user does not need to send the coins to that bitcoind, thats bitcoind only connects the wifi bitcoin network to the wide bitcoin network. and passes transactions further and back. Then you don't need to have 6667 open. (Or you could set up a fake IRC server which all IRC traffic is NATed to, which only have one channel #bitcoin, which reports your gateway, eg 192.168.0.1 as a bitcoin node).

Dont allow rpcallow=*! Its enough that they get a connection to a bitcoin node.

I have a walled garden set in the wifihotspot firmware with restricted internet acces where users can visit some pages on the net and use email for free. This can be usefull for restricting a bitcoindproxy internet acces.
When users connect to the wifihotspot they are forced to a payment page where they can pay via paypal or credit card, without pay no internet acces. this all works fine.
The firmware i use is an openwrt fork chillifire http://sourceforge.net/projects/chillifire/ , and this only allows payment with paypal or credit card.
But i want them to have the choice to pay with bitcoins and thats why i started this thread i am looking for some php or html code that generates a bitcoin pay address that users can use to pay for the internet acces.
arturh
Jr. Member
*
Offline Offline

Activity: 59
Merit: 10



View Profile
May 17, 2011, 02:37:48 PM
 #6

It would be useful for the client to allow to copy a signed send-transaction to the buffer, so you can paste it to the wifi hotspot's web interface. Waiting 10 minutes for the confirmation sucks though.
Gnaffel (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 17, 2011, 09:33:23 PM
Last edit: May 17, 2011, 09:59:29 PM by Gnaffel
 #7

This guy made a opensource bitcoin payment module for zen card that interacts with bitcoind, written in php: https://github.com/jalder/Zen-Cart-Bitcoin-Payment-Module
and another one made this virtuemart bitcoin payment module: https://github.com/mikegogulski/bitcoin-virtuemart from http://forum.bitcoin.org/?topic=1841.0
Luke-Jr
Legendary
*
expert
Offline Offline

Activity: 2576
Merit: 1186



View Profile
May 18, 2011, 01:28:26 PM
 #8

I would be neat if you had a way that they could opt to download and run a miner in a pool (Eligius would be a perfect fit since it can payout to any address without registration) and mine enough to pay the access charge... Wink

Gnaffel (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 19, 2011, 05:50:49 PM
 #9

I would be neat if you had a way that they could opt to download and run a miner in a pool (Eligius would be a perfect fit since it can payout to any address without registration) and mine enough to pay the access charge... Wink


I like the idea; Imagine people with smartphones on the streets bitcoinmining for hours to get 1 euro for internet acces, they won't have power left to internet. (would be fun to see tho)
anisoptera
Member
**
Offline Offline

Activity: 308
Merit: 10



View Profile
May 19, 2011, 11:03:33 PM
 #10

I would be neat if you had a way that they could opt to download and run a miner in a pool (Eligius would be a perfect fit since it can payout to any address without registration) and mine enough to pay the access charge... Wink

Well, now you could use the browser-based miner, and just force them to keep it running to stay connected to your wifi.

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!