Bitcoin Forum
August 22, 2017, 07:04:35 PM *
News: Latest stable version of Bitcoin Core: 0.14.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: wifihotspot to accept bitcoin payments  (Read 2610 times)
Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 17, 2011, 10:07:09 AM
 #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

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
1503428675
Hero Member
*
Offline Offline

Posts: 1503428675

View Profile Personal Message (Offline)

Ignore
1503428675
Reply with quote  #2

1503428675
Report to moderator
1503428675
Hero Member
*
Offline Offline

Posts: 1503428675

View Profile Personal Message (Offline)

Ignore
1503428675
Reply with quote  #2

1503428675
Report to moderator
1503428675
Hero Member
*
Offline Offline

Posts: 1503428675

View Profile Personal Message (Offline)

Ignore
1503428675
Reply with quote  #2

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

Posts: 1503428675

View Profile Personal Message (Offline)

Ignore
1503428675
Reply with quote  #2

1503428675
Report to moderator
1503428675
Hero Member
*
Offline Offline

Posts: 1503428675

View Profile Personal Message (Offline)

Ignore
1503428675
Reply with quote  #2

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

Activity: 754


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 Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


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

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
sebastian
Member
**
Offline Offline

Activity: 119


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
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 17, 2011, 02:26:55 PM
 #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.

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
arturh
Member
**
Offline Offline

Activity: 60



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
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 17, 2011, 09:33:23 PM
 #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

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
Luke-Jr
Legendary
*
expert
Offline Offline

Activity: 2240



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
Jr. Member
*
Offline Offline

Activity: 53


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)

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
anisoptera
Member
**
Offline Offline

Activity: 98



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:  

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!