<p>My question is about Bitcoin payment gateways and we can add their gateways to my site Like those sites (bitpay.com,https://gourl.io/), I want to create a bitcoin payment gateway in C#</p>
<p>my question :</p>
<p>If two users paid from their wallet at the same time and at the same price (Bitcoin wallet address) but one of those payments was confirmed, how can I find out which transaction is for which user?</p>
<p>I can see the payments that came to my wallet with this code, but how do I know which user has made which payment?</p>
<pre><code>QBitNinjaClient client = new QBitNinjaClient(_network);
        var _walletAddress = BitcoinAddress.Create(walletAddress, _network);
        var balance = client.GetBalance(_walletAddress, true).Result;

        foreach (var operation in balance.Operations)
        {
            
                if (operation.Confirmations &gt; 0)
                    
                    {
                       //do
                    }
            }
        }
</code></pre>

CC BY-SA 4.0
2021-02-01T08:12:06.730Z
Try btcpayserver.org
Jannes
CC BY-SA 4.0
2021-02-01T14:02:37.787Z
@Jannes I want to create a payment getway too and like this but what is my question answare?
user2071969
<c#><nbitcoin><qbitninja>
Bitcoin payment gateways in c#
user2071969
# Bitcoin payment gateways in c#

(Asked by: username_0 on 2021-02-01)

My question is about Bitcoin payment gateways and we can add their gateways to my site Like those sites (bitpay.com,https://gourl.io/), I want to create a bitcoin payment gateway in C#
my question :
If two users paid from their wallet at the same time and at the same price (Bitcoin wallet address) but one of those payments was confirmed, how can I find out which transaction is for which user?
I can see the payments that came to my wallet with this code, but how do I know which user has made which payment?
QBitNinjaClient client = new QBitNinjaClient(_network);
        var _walletAddress = BitcoinAddress.Create(walletAddress, _network);
        var balance = client.GetBalance(_walletAddress, true).Result;

        foreach (var operation in balance.Operations)
        {
            
                if (operation.Confirmations > 0)
                    
                    {
                       //do
                    }
            }
        }

**Tags:** c#, nbitcoin, qbitninja

> **Comments:**
> **username_1**: Try btcpayserver.org  
> **username_0**: @username_1 I want to create a payment getway too and like this but what is my question answare?  

---

## 0 answers

