Bitcoin Forum

Bitcoin => Project Development => Topic started by: bpwallace on March 30, 2018, 09:51:56 AM



Title: How should I implement p2p selling of online goods?
Post by: bpwallace on March 30, 2018, 09:51:56 AM
Hi there!

I am not a programmer nor am I as knowledgeable on this subject as I should be. I am in the middle of creating a website and want to implement peer to peer buying and selling without holding any of the crypto myself. In this case users sell something they designed to be used on my website and the buyers gain access to this item either permanently or for a certain time. Is this where smart contracts can help me? How would I go about this and what should I be educating myself on?

Thanks!


Title: Re: How should I implement p2p selling of online goods?
Post by: starmyc on March 30, 2018, 01:26:02 PM
I'm not sure you need smart contracts. You just need to watch for transactions to complete.

One way to do it: Your seller will have to give its address to receive funds, and your buyer will have to send money to the seller address and to say you which is the transaction id of the transaction. You'll then be able to verify that transaction's value is equal to coins than must be spent and destination address, using a third party api.


Title: Re: How should I implement p2p selling of online goods?
Post by: bpwallace on March 30, 2018, 02:04:20 PM
I'm not sure you need smart contracts. You just need to watch for transactions to complete.

One way to do it: Your seller will have to give its address to receive funds, and your buyer will have to send money to the seller address and to say you which is the transaction id of the transaction. You'll then be able to verify that transaction's value is equal to coins than must be spent and destination address, using a third party api.

Thanks will look into it.


Title: Re: How should I implement p2p selling of online goods?
Post by: onurgozupek on March 30, 2018, 03:37:04 PM
There is a platform name OpenBazaar, you may want to check it. It's like the marketplace of goods which paid by crypto currencies. It's way better to build your own online store and run a server for it. Just add your goods. That's simple. You always keep your node close to you. It's also possible to run Openbazaar on your VPS but not necessary if you have an old computer/laptop...


Title: Re: How should I implement p2p selling of online goods?
Post by: eternalgloom on March 30, 2018, 04:57:46 PM
Yeah don't over-complicate this, it should be fairly easy to set up something without using smart contracts.
Are you building this website from scratch or are you using xsome kind of CMS? Perhaps there's a plugin that does most of the work for you?

I know that there are Wordpress extensions that have this exact functionality.


Title: Re: How should I implement p2p selling of online goods?
Post by: bpwallace on March 30, 2018, 05:18:16 PM
Yeah don't over-complicate this, it should be fairly easy to set up something without using smart contracts.
Are you building this website from scratch or are you using xsome kind of CMS? Perhaps there's a plugin that does most of the work for you?

I know that there are Wordpress extensions that have this exact functionality.

From scratch!


Title: Re: How should I implement p2p selling of online goods?
Post by: Patatas on March 30, 2018, 05:28:01 PM
Hi there!

I am not a programmer nor am I as knowledgeable on this subject as I should be. I am in the middle of creating a website and want to implement peer to peer buying and selling without holding any of the crypto myself. In this case users sell something they designed to be used on my website and the buyers gain access to this item either permanently or for a certain time. Is this where smart contracts can help me? How would I go about this and what should I be educating myself on?

Thanks!
- Have you checked out a similar (much advanced) marketplace called OpenBaazar ? Please google it out.
 - You can do it with/without blockchain/smart contracts.Just that using a distributed ledger is always welcomed and gains massive support from the community.Of-course you have to go the decentralisation way.
 - You will find it difficult to code the entire project since you don't have a coding background.I suggest,advice more on the topic and I'm sure you will come across services which are doing the same.