Bitcoin Forum
December 14, 2024, 02:25:16 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: I found an issue with the Blockchain.info PHP examples  (Read 1362 times)
PBmining (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile WWW
January 08, 2014, 09:49:22 PM
 #1

Hello everybody.  I would like to make a contribution back to you guys for helping me learn how to accept BTC payments with PHP.
Anyone who uses the PHP examples provided by Blockchain.info will realize that the callback is not returning an invoice number.   This can cause a lot of confusion, especially for those just starting out.

After looking at Index.PHP for awhile, I found the culprit!


Quote
<div class="blockchain-btn" style="width:auto" data-create-url="create.php">  


To pass the invoice # along, you need to add this:


Quote
<div class="blockchain-btn" style="width:auto" data-create-url="create.php?invoice_id=<?php echo $invoice_id;?>">



They only tacked that variable onto the order status URL, but its create.php that needs it...
Smiley

Did you know?: Most of our hash power comes from other sources.  We are now specialized in the resale of cloudmining contracts through our associates!
jestersimpps
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 02, 2014, 06:44:32 PM
 #2

another issue is that the examples use your original btc address to generate the QR code, which will cause the callback not to fire back.

$my_bitcoin_address was set in the include as the btc address to forward to.


<img style="margin:5px" id="qrsend" src="<?=$blockchain_root?>qr?data=bitcoin:<?=$my_bitcoin_address?>%3Famount=<?=$price_in_btc?>%26label=Pay-Demo&size=125" alt=""/>
alani123
Legendary
*
Offline Offline

Activity: 2618
Merit: 1514



View Profile
May 02, 2014, 06:48:27 PM
 #3

I believe that the most apropriate thing you could do would be to contact them if you haven't already.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
 
 Duelbits 
██
██
██
██
██
██
██
██

██

██

██

██

██
TRY OUR UNIQUE GAMES!
    ◥ DICE  ◥ MINES  ◥ PLINKO  ◥ DUEL POKER  ◥ DICE DUELS   
█▀▀











█▄▄
 
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
 
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀
 
███
▀▀▀
███
▀▀▀

███
▀▀▀
███
▀▀▀
███
▀▀▀

███
▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
 KENONEW 
 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀█











▄▄█
10,000x
 
MULTIPLIER
██
██
██
██
██
██
██
██

██

██

██

██

██
 
NEARLY
UP TO
50%
REWARDS
██
██
██
██
██
██
██
██

██

██

██

██

██
[/tabl
PBmining (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile WWW
May 02, 2014, 09:29:42 PM
 #4

I believe that the most apropriate thing you could do would be to contact them if you haven't already.

This is an old thread, but I did contact them many times about that.  I felt that giving everyone the heads up was the appropriate thing to do as well.  I thought it might help someone out there.  Smiley

Did you know?: Most of our hash power comes from other sources.  We are now specialized in the resale of cloudmining contracts through our associates!
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!