<p>There are existing solutions that handle payment processing for you. You can use <a href="https://github.com/btcpayserver/btcpayserver" rel="nofollow noreferrer">BTCPayServer</a> which has an API that is similar to BitPay's API.</p>

CC BY-SA 4.0
2018-06-01T05:33:39.430Z
Thank you so much for the answer could you provide any other solutions ?
solderingiron
CC BY-SA 4.0
2018-05-31T22:06:05.687Z
2018-05-31T22:06:05.687Z
Ava Chow
<p>I am implementing a payment module for bitcoins. </p>

<p>I have the following case. I need customers to be able to pay in bitcoins. But for some reasons I cannot use existing solutions like <strong>Bitpay</strong>. </p>

<p>Therefore I have thought and ended up with the following solution.</p>

<ol>
<li>We have a private key wallet of HD type, so we can generate child addresses from our master key. </li>
<li>When a user tries to pay in Bitcoins we are generating a new address and display it to the user. </li>
<li>We associate an address with an order id</li>
<li>A daemon running in background is checking pending orders requesting information from Blockchain for a concrete address and checking whether this address received amount equal to an order total sum. </li>
<li>In case there are more than X confirmations we are setting a status of an order to PAID</li>
</ol>

<p>I wonder whether this is acceptable solutions or maybe there are some better ways to implement custom bitcoin payments ?</p>

<p>I would be great for any suggestions and help.</p>

<p>Thanks </p>

<bitcoin-core><development><confirmations><payment><bip32-hd-wallets>
Custom bitcoin confirmation process
solderingiron
# Custom bitcoin confirmation process

(Asked by: username_0 on 2018-05-31)

I am implementing a payment module for bitcoins.

I have the following case. I need customers to be able to pay in bitcoins. But for some reasons I cannot use existing solutions like **Bitpay**.

Therefore I have thought and ended up with the following solution.

1. We have a private key wallet of HD type, so we can generate child addresses from our master key.
2. When a user tries to pay in Bitcoins we are generating a new address and display it to the user.
3. We associate an address with an order id
4. A daemon running in background is checking pending orders requesting information from Blockchain for a concrete address and checking whether this address received amount equal to an order total sum.
5. In case there are more than X confirmations we are setting a status of an order to PAID

I wonder whether this is acceptable solutions or maybe there are some better ways to implement custom bitcoin payments ?

I would be great for any suggestions and help.

Thanks

**Tags:** bitcoin-core, development, confirmations, payment, bip32-hd-wallets


---

## 1 answers

### Answer by username_1 on 2018-05-31. Score: 0 | Accepted answer

There are existing solutions that handle payment processing for you. You can use [BTCPayServer](https://github.com/btcpayserver/btcpayserver) which has an API that is similar to BitPay's API.

> **Comments:**
> **username_0**: Thank you so much for the answer could you provide any other solutions ?  

---

