209 похожих чатов

Hey there, I'm working on developing a bch wallet to

accept online payments for my business. For the moment I will just use one wallet to avoid spreading. The problem I have is how do I differentiate each customer payment that I receive? only by the amount is not enough as two of them may buy the same product. Is there a sub-address/one-time-address system, or payment-id system that I can use to differentiate between them when I request the payment in my website?

8 ответов

39 просмотров

Can you please send me a DM admin never DM you first

(the other guy who replied to you was a fake admin, please do not dm him)

Gaucho Brujo- Автор вопроса

You appear to be mixing the words “wallet” and “address” here. Most modern Bitcoin wallets are “HD” and have a chain of addresses that can be recovered from a single “seed phrase” so while these aren’t “sub-addresses” they can likely be used the way you want. You can get more technical with “derivation paths” and have “sub-addresses” (at least some wallets do this for the chain of change addresses), but I don’t think you need to do that in order to achieve what you want to achieve. Incidentally, there are a lot of BCH wallet implementations already, it might be better to look into using (and possibly contributing to) one of those instead of spinning up your own.

I believe there are also already existing POS and cart softwares out there that support BCH, so perhaps walet isn’t even the right word for what you want. In any case, the concern “spreading” is likely also a misunderstanding. Every payment will be a separate set of coins on the blockchain regardless of whether or not they go to the same address, so sticking to one address doesn’t necessarily benefit you outside of avoiding mistakes trying to spin your own product where you don’t necessarily need to.

Gaucho Brujo- Автор вопроса
Dustin 🪐
You appear to be mixing the words “wallet” and “ad...

let me reformulate, can I have multiple addresses withing a single wallet?

Gaucho Brujo
let me reformulate, can I have multiple addresses ...

Yes, by definition, HD wallets have infinite deterministic addresses.

If I am interpreting your issue correctly, it sounds like you are sharing the very same bch address with all your customers hence the issue of how to identify who made the payment, this is not how it is done. Payment processing solutions generate a specific address for each customer checkout and then monitor that address to determine if the customer has made the payment. Please have a look to https://prompt.cash/

Похожие вопросы

Карта сайта