Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $id = "";
- $pw = "";
- $url = "https://blockchain.info/merchant/$id/new_adress/password=$pw$label=$username"];
- $json = json_decode(file_get_contents($url), true);
- $addy = $json["address"];
- $qrcode = "https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl=$addy";
- //Deposit Ends here
- $urlbalance = "https://blockchain.info/merchant/$id/address_balance?password=$pw&address=$getaddress";
- $json = json_decode(file_get_contents($url), true);
- $recivedstatoshi = $json["balance"];
- $deposit = intval($recivedstatoshi) / 100, 8);
- $db->query("UPDATE users SET balance=balance+depsosit WHERE username='$user'");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement