Author

Topic: help me with block.io! (Read 392 times)

copper member
Activity: 1442
Merit: 529
July 26, 2016, 01:41:47 AM
#2
Below is the code which generate BTC address, but i want to make it like this where i add amount in USD in the php code and it converts that USD in BTC rate at of that time. When people send money to that address it will show PAID message and TX ID. Kinda like checkout for items

Code:

require_once ("block_io.php") ;


 
$apiKey "123-123-123-123";
 
$version 2// API version
 
$pin "test123";
 
$block_io = new BlockIo($apiKey$pin$version);
 
 
$newAddressInfo $block_io->get_new_address();

 echo 
"label: ".$newAddressInfo->data->label"
"
;



?>

echo "Deposit Address: ".$newAddressInfo->data->address."
"
?>


Hope you'll help me! i want to use it accept bitcoin

You need to move this to the technical support section of this forum. As you have already seen from 0 answers so far, users of this section are more focused on talking about services and discussing about them. In the technical support board there are a lot of experienced users who will love to help you out. All the technical problems I had (not that many) I got a really fast response on how to solve them.
hero member
Activity: 896
Merit: 1000
July 24, 2016, 05:22:35 AM
#1
Below is the code which generate BTC address, but i want to make it like this where i add amount in USD in the php code and it converts that USD in BTC rate at of that time. When people send money to that address it will show PAID message and TX ID. Kinda like checkout for items

Code:

require_once ("block_io.php") ;


 
$apiKey "123-123-123-123";
 
$version 2// API version
 
$pin "test123";
 
$block_io = new BlockIo($apiKey$pin$version);
 
 
$newAddressInfo $block_io->get_new_address();

 echo 
"label: ".$newAddressInfo->data->label"
"
;



?>

echo "Deposit Address: ".$newAddressInfo->data->address."
"
?>


Hope you'll help me! i want to use it accept bitcoin
Jump to: