Bitcoin Forum

Economy => Service Discussion => Topic started by: Coinbuddy on July 24, 2016, 10:22:35 AM



Title: help me with block.io!
Post by: Coinbuddy on July 24, 2016, 10:22:35 AM
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:
<?php

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"<br>";



?>

<h1><?php echo "Deposit Address: ".$newAddressInfo->data->address."<br>"?></h1>

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


Title: Re: help me with block.io!
Post by: BitcoinSupremo on July 26, 2016, 06:41:47 AM
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:
<?php

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"<br>";



?>

<h1><?php echo "Deposit Address: ".$newAddressInfo->data->address."<br>"?></h1>

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.