Bitcoin Forum
May 06, 2024, 01:13:35 PM *
News: Latest Bitcoin Core release: 27.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 1344 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!
1715001215
Hero Member
*
Offline Offline

Posts: 1715001215

View Profile Personal Message (Offline)

Ignore
1715001215
Reply with quote  #2

1715001215
Report to moderator
1715001215
Hero Member
*
Offline Offline

Posts: 1715001215

View Profile Personal Message (Offline)

Ignore
1715001215
Reply with quote  #2

1715001215
Report to moderator
1715001215
Hero Member
*
Offline Offline

Posts: 1715001215

View Profile Personal Message (Offline)

Ignore
1715001215
Reply with quote  #2

1715001215
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715001215
Hero Member
*
Offline Offline

Posts: 1715001215

View Profile Personal Message (Offline)

Ignore
1715001215
Reply with quote  #2

1715001215
Report to moderator
1715001215
Hero Member
*
Offline Offline

Posts: 1715001215

View Profile Personal Message (Offline)

Ignore
1715001215
Reply with quote  #2

1715001215
Report to moderator
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: 2394
Merit: 1412


Leading Crypto Sports Betting & Casino Platform


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.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
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!