Bitcoin Forum
July 05, 2024, 05:37:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [php] blockchain api problem tx hash not show and not send payment please help  (Read 1030 times)
parames3010 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
February 28, 2015, 04:51:05 PM
Last edit: February 28, 2015, 05:15:18 PM by parames3010
 #1

Edit : now i can fix this problem  Smiley

$sendPayment = json_decode(file_get_contents("https://blockchain.info/merchant/$ID/payment?password=$PW&to=&address&amount=$amount  (Change & to $)

-----------------------------------------------------------------------------------

Hi bitcointalk member.  

i have some problem. i can't fixed  Sad  
today i write cashout script. tx_hash don't show and not payment  i don't know what wrong  Huh

https://i.imgur.com/bhkwIIO.png

PHPCode:
Code:
		
$ID = "***********************";
$PW = "**************";

$sendPayment = json_decode(file_get_contents("https://blockchain.info/merchant/$ID/payment?password=$PW&to=&address&amount=$amount"), true);

$txID = "Transaction ID:" . $sendPayment[tx_hash];
$message = "Payment successfully send to ";

HTML IN BODY Code:
Code:
<html>
<body>

<?php echo $message; echo $address?><br>
<?php echo $txID?><br>
<a href="logout.php">Logout</a>
</body>
</html>



Thank  Smiley
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!