Bitcoin Forum
June 22, 2024, 04:45:28 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Php -> wallet  (Read 730 times)
imrer (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


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 «
Ditto
Sr. Member
****
Offline Offline

Activity: 330
Merit: 250


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

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

Activity: 308
Merit: 250


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 (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


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
Merit: 250


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!