Bitcoin Forum
December 12, 2017, 05:50:42 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Php -> wallet  (Read 654 times)
imrer
Full Member
***
Offline Offline

Activity: 154


View Profile
October 16, 2013, 04:00:18 PM
 #1

I have this use case: I want to sell product per bitcoins. We have online bitcoin wallet with unique name per product per buying customer.

I want to display bitcoin payment link (sth like bitcoin:wallet?amout=0.001) and make user to process the payment.

It requires 3 confirmations to accept the payment.

Then I want to check, if payment was successful (somecron?).

I'm new to this. Can I ask you, how this would look like in php?

Start your own casino site: » CoinDice | CoinWheel «
1513101042
Hero Member
*
Offline Offline

Posts: 1513101042

View Profile Personal Message (Offline)

Ignore
1513101042
Reply with quote  #2

1513101042
Report to moderator
1513101042
Hero Member
*
Offline Offline

Posts: 1513101042

View Profile Personal Message (Offline)

Ignore
1513101042
Reply with quote  #2

1513101042
Report to moderator
1513101042
Hero Member
*
Offline Offline

Posts: 1513101042

View Profile Personal Message (Offline)

Ignore
1513101042
Reply with quote  #2

1513101042
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513101042
Hero Member
*
Offline Offline

Posts: 1513101042

View Profile Personal Message (Offline)

Ignore
1513101042
Reply with quote  #2

1513101042
Report to moderator
1513101042
Hero Member
*
Offline Offline

Posts: 1513101042

View Profile Personal Message (Offline)

Ignore
1513101042
Reply with quote  #2

1513101042
Report to moderator
Ditto
Sr. Member
****
Offline Offline

Activity: 330


View Profile
October 17, 2013, 02:42:00 PM
 #2

http://blockchain.info/api/api_receive
Gordon Bleu
Sr. Member
****
Offline Offline

Activity: 308


verified ✔


View Profile WWW
October 17, 2013, 02:46:12 PM
 #3

bitcoin:1DdtTzJeQojWYGwYa669VoeJ785iyJPoQB?amount=0.01&label=sqservice
bitcoin:1DdtTzJeQojWYGwYa669VoeJ785iyJPoQB?amount=0.01&label=sqservice

GAWMiners http://gawminers.com/ Gridseed ASICS in stock in USA
ONE YEAR FREE HOSTING AND ELECTRICITY WITH PURCHASE!






AROUSR.COM The Adult Chat Community (21+) We now accept BTCitcoins Smiley               |
Connect with hot girls for chat, talk, trade pics and more!➠Visit http://arousr.com (21+)|
imrer
Full Member
***
Offline Offline

Activity: 154


View Profile
October 17, 2013, 08:12:05 PM
 #4

I've got bitcoind client on server so external services is not what I'm looking for. How to process what I described in php code?

Start your own casino site: » CoinDice | CoinWheel «
Ditto
Sr. Member
****
Offline Offline

Activity: 330


View Profile
October 18, 2013, 07:14:34 PM
 #5

I've got bitcoind client on server so external services is not what I'm looking for. How to process what I described in php code?
Simple JSON-RPC. Use this library  - http://jsonrpcphp.org/?page=download&lang=en

Code:
  require_once 'jsonRPCClient.php';
 
  $bitcoin = new jsonRPCClient('http://user:pass@127.0.0.1:8332/');
 
  echo "<pre>\n";
  print_r($bitcoin->getinfo());
  echo "</pre>";
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!