Create multiple addresses for one crypto wallet - cryptography

I have an online gambling platform and we want to add payments in cryptocurrencies on that platform. We know that there are platforms that can do that for us (coinspaid, nowpayments, etc.) But we want do to this on our side. Our idea is to save unique wallet addresses for every coin, for every user. In that way, we can know who sent money and we can add balance to that player. But the question is how can we create these unique wallet addresses for different users? I will be thankful if someone can send me some links or explain to me what we should search for to do this. :)

You create 1 wallet per cryto and use a different memo for each customer. That way the memo relates to the customer but all the customers pay to the same wallet address

Related

How is the correct way to pay my customers

I want to create a platform where I have 2 kinds of users, Seller and Buyer.
Let's imagine that the Seller is selling a $10 product and I need get 10% of the value to me. Which is the correct way to do that transaction? The buyer need to pay to my account and I transfer the money to the seller after that? How can I do that transaction in a secure way for me and my customers? I need use gateways like Stripe or Paypal for that?
How the majority of platforms pay me with only my bank data? In platforms like Amazon, Shpfy... I think they don't have a person that do manual transfers every day for each seller.
You need Stripe Connect that allows you to work with merchants and payout them. Let me know, if you have a question with Stripe and Stripe Connect.

Handling payments in react-native

So I am building an app with react-native (expo) where a user fixes appointment with some other person and to do so, he has pay the other person.
Now how can I handle payments here. What i want is the user makes the payment and the receiver should be the other person but how much i understood the payment gateways, the payment is received by the app owner or in simple words, receiver is a single person.
I also tried deep linking to directly take the user to some UPI app like google pay or paytm but it seems that those apps require some special type of account (merchant account) to make the transaction if we access them using deep links (which is a problem as it is not necessary that every user will have a merchant account).
As I said, it is always better that you have your own payment gateway account, and all the transaction goes through your gateway, meaning you get the money and you build a system which will forward the payment to the receiver. I have worked on 2 such apps:
1: Where we have our own razorpay account, and we get the payment first, and then we forward it.
2: Where in we were directly having transaction between 2 users, but not through app, instead we display them the account details of the receiver and give them 48hrs time to pay that account. But we had to manually handle this scenario since one cannot know if the user has paid to the said account, since it's not your account.
3: There is one more method where in payment gateway has a webhook which consists of a virtual account number, and every user that lands on your app, you can create a virtual account number for him/her and store the user-virtual account number relationship in your db, whenever there is a payment, you can find out about the user through this virtual account number. Read about this.
The deep link is a good idea, but again, as you mentioned, it will require the end user to be a merchant user(have a merchant account), you can find more details here
Maybe you can ask your users to create a merchant account, which again I am not sure if it's possible, and if it's possible, if it's feasible?
The best way according to me is, you handle this through your payment gateway, and instantly forward it to the user who should have received it. Again there are some rules and clause to it(some commission is taken by those payment gateway,etc), check those things out.
I think the most close answer to my question is to use razorpay routes where we can link multiple accounts with our account and transfer money accordingly.
More details here

How can i receive payment in bitcoin without using any API or 3rd party

I have a website to sell products. Prices are in EURO. I want to take payment in my personal bitcoin address. So, i have to generate the product price with address in a QR code besides the regular payments system. And the customer can pay to scan the QR code. My question is - how can i show the QR code with product price and address at payment section ?
If you think you've got it and TRUST only yourself you can write it all yourself.
In order to do it you'd have to develop things such as wallet service for creating addresses + listening for any incoming deposits on your addresses, maybe storing your private keys should be necessity since you're dealing with some sensitive stuff u know... cryptos....
Otherwise you can trust 3rd party services such as BitGo or APIs provided by blockchain.com (previously knowns as blockchain.info)
DISCLAIMER: I don't have any affiliation with bitgo.com, blockchain.com or any other such services

Bitcoin transaction verification process

I am building and app which will offer payment in bitcoins. I know that when I send bitcoin from one address to another it can be tracked by blockain API to verify the transaction. After receiving some assets I want to send some assets back. The customer will have an input field where he will paste his deposit wallet address. I am subscribed to blockchain API to track received assets to my bitcoin address. How can I verify that the payment was made by certain customer? Checking his address doesn't seem to solve the problem because if customer uses wallets like Coinbase, Bitstamp etc. transaction is made from multiple addresses.
A few helpers here:
What you need to do is to generate a new address and give it to your customer. This way you can uniquely identify him
Wait for confirmation before making the decision. Just because you see a transaction, does not mean you have the money. You need to wait for a few blocks and several (>6) confirmations

Blockchain receive API with same address

I need to accept bitcoins on my website (PHP). I'm using blockchain and i have read the api: https://blockchain.info/api/api_receive Is quite simple but i have some questions, but first i will try to explain what i need.
Client send bitcoins to my wallet (Any amount they want)
Server will be notified with confirmations until gets OK.
Gets the sent amount and client wallet from callback and store in DB.
Now my questions:
"You provide a bitcoin address we generate unique addresses that forwards payments to that address instantly notifying a callback URL."
Q: Can we reuse that address and all clients use same address to send bitcoins? Or address will be deleted? The address have a lifetime?
Instead create address to pay is possible clients pay directly to my wallet and server got notified? I don't need extra params like tokens.
I end up in a website that use always the same wallet/address for each odd: http://bitzillions.com/satoshibones
I will like to have a pay system like that, one address per game.
Also should i use blockchain/blockchain (https://github.com/blockchain/api-v1-client-php) library or the simple library (https://github.com/blockchain/receive_payment_php_demo)?
Also if you have any suggestion or alternative i will like to hear.
I think I can help. Disclaimer that I work for BlockTrail.
It would not be good to use the same address because people can view the historical transactions associated with that address. It is recommended to use a new address for every transaction. These can be under the same wallet or different wallets. That may sound complicated but with the possibilities as long as the universe is old you can make a new address per transactions. Some wallets will do this for you automatically. This is called HD Wallets or Hierarchical Deterministic Wallets. You can also use this to have your clients always pay into the same wallet.
You can also use an API to create these wallets. If you are interested in using BlockTrail's here is the link: https://www.blocktrail.com/
We also have webhooks that will send you notifications for confirmations etc... If you want to learn more about our platform, here is a blog that describes it. BTW it is free! https://blog.blocktrail.com/2015/06/blocktrails-developer-platform/