Create new address Payment form Payment notify Our logos
Create new address

To create a one-time Bitcoin address for receiving a payment, send the GET request to the following address:

https://bitnell.com/api/get_address.php?email=Your E-Mail&token=Token&amount=Amount&callback_url=Callback URL

It is necessary to translate exactly the amount specified in parameter amount, otherwise the payment will not be processed. The amount should be transferred by one transaction, payment by several transactions is not supported.

The received address will be displayed on your site without switching to our payment form.

Code example
<?php
 
$email = '[email protected]';
$token = 'bD4JUPwllSdCB6UnEutl7duhQ';
$amount = '0.01'; // min 0.001 BTC
$order_id = '12345';
$status_url = 'https://example.com/status.php';
 
$url = 'https://bitnell.com/api/get_address.php?email='.$email.'&token=
'.$token.'&amount='.$amount.'&order_id='.$order_id.'&
status_url='.$status_url.'';
 
$json = file_get_contents($url);
$result = json_decode($json, true);
 
echo 'Send to: '.$result['address'];
 
?>
Payment form

To redirect the buyer to our payment form, you need to generate a payment Bitcoin-address, specifying the necessary parameters.

Code example
<?php
 
$email = '[email protected]';
$token = 'bD4JUPwllSdCB6UnEutl7duhQ';
$amount = '0.01'; // min 0.001 BTC
$order_id = '12345';
$status_url = 'https://example.com/status.php';
 
$url = 'https://bitnell.com/api/get_address.php?email='.$email.'&token=
'.$token.'&amount='.$amount.'&order_id='.$order_id.'&
status_url='.$status_url.'';
 
$json = file_get_contents($url);
$result = json_decode($json, true);
 
?>
 
<form method="post" action="https://bitnell.com/en/payment.php">
<input type="hidden" name="amount" value="<?php echo $amount ?>"> 
<input type="hidden" name="address" value="<?php echo $result['address'] ?>">
<input type="hidden" name="description" value="Demo payment">
<button type="submit">Make payment</button>
</form>
Payment notification

Immediately after the receipt of funds for the created Bitcoin-address to the specified in the parameter Status URL you will receive a notification about the payment made by the POST method. The value of the parameter $_POST['status'] will be pending.

You can process the payment only after you receive 3 confirmations, when the value of $_POST['status'] will be set to ok.

Code example
<?php
 
$token = 'bD4JUPwllSdCB6UnEutl7duhQ';
 
$hash = md5($token.':'.$_POST['amount'].':'.$_POST['order_id'].':'
.$_POST['txid']);
 
if ($hash != $_POST['sign'] ) {
    exit();
}
 
if ($_POST['status'] == 'pending') {
 
// Payment received, we are waiting for 3 confirmations
 
}
 
else {
 
// 3 confirmations are received, funds are transferred to your balance.
// You can send a customer order.
 
}
 
?>
Our logos

Below are our official logos for posting them on your website.

© BITNELL. Secured Bitcoin Gateway.
Accept Bitcoin very easy in one click. Service is available all over the world in 200+ countries.
Node status: Perfect