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
<?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