Sign in to follow this  
magius

Solidar E-Commerce Marketplace

Recommended Posts

I open this topic for updates about the project.

The initial idea discussed between me, @Rik8119 and @fedde was to create a Multivendor Marketplace using an ecommerce platform (the one chosed by Fredrik Bodin was Opencart), in which goods and services' payment will be possible using two currencies both, a fiat currency and solidar. This will be possible implementing a modified split payment plugin. Ordinary split payment plugins give a way to pay with cash and cards both and was used first on offline POS. The modified split payment plugin will give a way to pay some partly in a fiat currency (euro, dollar, etc) and partly in solidar. In that way we think we could spread the adoption of solidar, because lots of phisical goods have a fiat currency production/distribution chain behind, so is needed to give vendors partly fiat currencies. When chains will be closed with solidar, the percentuage of solidar will increase.  

 

Share this post


Link to post
Share on other sites

Hi,

i haven't programmed any website plugin until now but i think it is time. Is there anyone here that can point me in the right direction. Is it possible to have a pre processor plugin that first interacts with the Solidar BotNetwork and then roots the remaining payment to whatever plugin follows?

I hope in that way it is possible to integrate the split payment as a step before the actual payment what has the advantage that it would not need all the functions of the other payment plugins.

Rik

Share this post


Link to post
Share on other sites

Hi, i had a deeper look into the plugin. As i can say it only makes a connection to the shops own bot. This is a cool feature for shops to increase UX but as i see there is no point where it can communicate with the Solidarbot. and because it is only after the sale it can't be used as well. (imho it is much easier to first settle the Solidar payment and then the fiat payment). However maybe the code can be useful in the future..

Share this post


Link to post
Share on other sites

So, basically wordpress has two types of functionalities: actions and filters.

To activate an action you can use a hook that is like a specific timepoint. F.e. when loading the dashboard you can use a special hook that comes prior to add something to it.

In my case the WooCommerce plugin has a hook that can act as a checkpoint where i can interrupt before the actual payment and make some action (present the Bot payment ID and wait for payment confirmation).

How the action needs to be structured and programmed for that is the next question. And how there can be an extra field for the Solidar amount for each product and how they can be added at checkout.

First step is done ill inform about the process and put the source code online at github asap.

Rik

Share this post


Link to post
Share on other sites

First step is done i added an Solidar price to the product that is also shown at the product page when shopping.

Next:

- Show the total Solidar price of the complete order ( amount times price /each product)
- Show only the Pay with Solidar option before proceed to checkout.
- Generate a payment ID with the Solidar bot API.
- Check for the Payment before proceeding.

Im sure it will get tricky in the details - like how to hold the payment process before proceeding to checkout, but one finds a solution if one really wants it!

I hope this also works with multi vendor sites as the hooks may not be the same.

Rik

Share this post


Link to post
Share on other sites

First is done, 3 to go. WooCommerce really isn't that complicated, so i think i can do it.

- Show the total Solidar price of the complete order ( amount times price /each product)

I am still looking into how to easily and safely integrate the payment itself.

- Show only the Pay with Solidar option before proceed to checkout.
- Generate a payment ID with the Solidar bot API.
- Check for the Payment before proceeding.

Code is under

https://github.com/wincev/solidarpay

 

Share this post


Link to post
Share on other sites
Summary

Solidar (SDR) is a demurrage based cryptocurrency with universal basic income (UBI). Solidar is a fork of Freicoin (FRC), which is a fork of Bitcoin (BTC).

Some economical and technical explanations are on the Solidar site (https://www.solidar.it).

https://github.com/wincev/solidar
https://github.com/freicoin/freicoin

Goal
 
We wish to spread the Solidar to as much people as possible, so to reach the goal to distribute the universal basic income worldwide. The unversal basic income, to be useful to the people immediatelly, is needed to be spended to buy goods and services needed to the daylife. 
 
Business Plan.
 
To reach the goal, we can start from Italy adding to the marketplace to be created,  lots of shops of enterprises which are associated to an enterpreneural association with which we have an agreement and lots of consumers associated to a consumers' association with which we have an agrement. @Domenico de Simone is  a professional lawyer in Italy that signed this agreement.

Roadmap

1. First approach: Open Cart  (abandoned)

The initial idea discussed between me, Hendrik a Fredrik  was to create a Multivendor Marketplace using an ecommerce platform (the one chosed by Fredrik Bodin was Opencart), in which goods and services' payment will be possible using two currencies both, a fiat currency and solidar. This will be possible implementing a modified split payment plugin. Ordinary split payment plugins give a way to pay with cash and cards both and was used first on offline POS. The modified split payment plugin will give a way to pay some partly in a fiat currency (euro, dollar, etc) and partly in solidar. In that way we think we could spread the adoption of solidar, because lots of phisical goods have a fiat currency production/distribution chain behind, so is needed to give vendors partly fiat currencies. When chains will be closed with solidar, the percentuage of solidar will increase.   

2, Second approach: Wordpress site with Woocommerce and CoinPayments.net cloud wallet account  (abandoned)

To do that we need to create an internet infrastructure, where users can subscribe, can open web wallets where to receive the cryptocurrency UBI funds and can spend them on a marketplace, using partly the cryptocurrency and partly a fiat currency.
 
Our goal is to facilitate the creation of productive/distributive chains in which it will be possible to spend the cryptocurrency only. To reach this goal fastly we think is needed to adopt a dual currency system, with prices expressed partly in the cryptocurrency and partly in a fiat currency (dollar, euro and soon). For example on the marketplace a teapot could cost 5 SDR + 5 EUR. In that way the user will pay partly using the cryptocurrency stored in his web wallet, and partly using a fiat currency through his credit/prepaid card. The user will see the system as a discounted fiat currency payment (UBI is given for free, so he really pays only 5 EUR). A market like that is  competitive with an ordinary market due the reduced price of goods, but at the same time is helped the creation of a parallel market working only with the cryptocurrency. So, more the marketplace is used and more the cryptocurrency part of the price will increase and the fiat currency part will decrease.
 
We found a Wordpress plugin with which is possible to create web wallets on a Wordpress site, in which users can deposit their bitcoins/altcoins, withdraw, and transfer to other users. In our case solidars. The plugin works with a Bitcoin full node, and also with a cloud wallet.
 
 
To do that is needed to add Solidar to CoinPayments.net https://www.coinpayments.net and to create a yearly hosting plan for the cloud wallet. 
 
Using that plugin, we can connect the other plugin  to the Solidar through API.

https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/coinpayments-adapter-extension/

Our goal is to create an users' easy-to-use interface like the one adopted on Mannabase (https://www.mannabase.com/) but their code is not reusable because is closed code. 
 
After we have web wallets, we need to send on them the UBI (universal basic income) funds each month. We could use another plugin developped by the same coder, for airdrops,
 
https://www.dashed-slug.net/airdrop-extension-for-bitcoin-and-altcoin-wallets/
 
After the users have their web wallets and the UBI funds on them, they need to spend them.
 
That's the code we need to develop. We need to express prices on Woocommerce/WC-Marketplace (which is a plugin for multivendor marketplaces like Amazon) in SDR+EUR (or USD, and other fiat currencies). When an user pays goods or services he has to first pay the part in SDR and then the part in fiat currency. With a scheme like this:

?ui=2&ik=ba88a3b822&view=fimg&th=1634bdfb75e0a59a&attid=0.1&disp=emb&realattid=ii_jh0zw7c40_1634bc6c0c6dc768&attbid=ANGjdJ9n1i0VUXu7K75Pv-gXLyMHmTTl_4mpJKujCxRPt7uOOr4FUgQP_5XedJeWCUQaWsCts0S-GuQ6I_VAhVU9pfS4z0XU1eJ9wQxUvb5xZYFhVje7bWpu1TiKz-I&sz=w842-h474&ats=1526202778593&rm=1634bdfb75e0a59a&zw&atsh=1
The bitcoin/alcoin payment gateway for Woocommerce is already developped!

https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/woocommerce-cryptocurrency-payment-gateway-extension/
 
and the fiat currencies Paypal payment gateway for Woocommerce could be this

https://docs.woocommerce.com/document/paypal-standard/
 
Now we need all this working on a real installation of a multivendor marketplace! With commissions from vendors part SDR and part fiat currencies... But if we have the software before described we can do it!
 
We need to sync on Github the last development commits of Freicoin with Solidar, because they share a similar data base. The Freicoin developpers enhanced the code to make faster transactions and so we need this sync.

https://github.com/wincev/solidar
https://github.com/freicoin/freicoin

3. Third approach: Wordress site with Woocommerce and Solidar Full Node


1) A WordPress Multisite site. We could create a WordPress Multisite site (with subdomains’ based sub-sites) where users can subscribe to create web wallets.
https://wordpress.org/
https://codex.wordpress.org/Create_A_Network

2) A WordPress based web wallets’ system. We could create a web wallets’ system based on WordPress,  in which users can deposit the cryptocurrency, withdraw, and transfer it to other users.  Our goal is to create an users’ easy-to-use interface like the one adopted on MannaBase https://www.mannabase.com/ but unfortunately their code is not reusable because is a closed code.  To do that so we could use this open source plugin:
                                                                                                                  
https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/

The plugin works with a bitcoin/altcoin full node, in our case with a Solidar Full Node.  Then to connect the first plugin to the  full node, we could use this open source plugin:

https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/coinpayments-adapter-extension/
 
3) A WordPress based UBI donation system. After we have web wallets working on the WordPress site, we need to send cryptocurrency UBI funds to users each month. To do that we could use an open source plugin developped for airdrops:
                                                                                                                                          
https://www.dashed-slug.net/airdrop-extension-for-bitcoin-and-altcoin-wallets/
                                                                                                              
5)  A WordPress based multivendor marketplace. After the users have their web wallets and the UBI funds on them, they need to spend them, so we could setup a multivendor marketplace based on Woocommerce plugin and Dokan sub-plugin:

https://woocommerce.com/
https://wedevs.com/dokan/
                                                                                                    
4) A WordPress based dual currency payment gateway
After the multivendor marketplace is created, the users need to pay goods and services using the cryptocurrency in their wallets and the fiat currency in their credit/prepaid cards. The bitcoin/altcoin payment gateway for Woocommerce is already developped, so we could use that open source plugin:
https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/woocommerce-cryptocurrency-payment-gateway-extension/
                                                                                          
and the fiat currencies payment gateway for Woocommerce (based on Paypal) also exists, so we could use this open source plugin:
https://docs.woocommerce.com/document/paypal-standard/


6) A WordPress based dual currency Woocommerce plugin
The dual currency Woocommerce plugin has to be written .

The action required is to write a Woocommerce plugin that has these functions: a) express goods and services’ prices in a cryptocurrency plus in a fiat currency on  Woocommerce.  b) Chain up the Woocommerce altcoins’ payments gateway and the fiat currencies’ payments gateway so to make possible for an user to make a dual currency payment.

Here’s the flow chart of the requested plugin features:


?ui=2&ik=ba88a3b822&view=fimg&th=1634bdfb75e0a59a&attid=0.1&disp=emb&realattid=ii_jh0zw7c40_1634bc6c0c6dc768&attbid=ANGjdJ9n1i0VUXu7K75Pv-gXLyMHmTTl_4mpJKujCxRPt7uOOr4FUgQP_5XedJeWCUQaWsCts0S-GuQ6I_VAhVU9pfS4z0XU1eJ9wQxUvb5xZYFhVje7bWpu1TiKz-I&sz=w842-h474&ats=1526202778593&rm=1634bdfb75e0a59a&zw&atsh=1                                                        

 

Share this post


Link to post
Share on other sites

Thank you very much @magius for the summary, the prototype is now online in github. I had no time testing it right now and payment ids after payment are not yet visible for merchants  but the main functionality should be alright now.

Share this post


Link to post
Share on other sites

Update:

Regarding the second approach, a first attempt was abandoned. The  paid cloud wallet hosting account on CoinPayments costs 120.000 USD/year. That's is an unsustainable cost for a starting phase.

Also unfortunately the SolidarPay plugin for Woocommerce, based on Telegram bot, is not usable at this stage because the process is not automatic. People have to insert data manually for each transaction

 

Share this post


Link to post
Share on other sites

@Rik8119 I propose to start this project, adopting the third approach, that I repost here:

 

Wordress site with Woocommerce and Solidar Full Node

1) A WordPress Multisite site. We could create a WordPress Multisite site (with subdomains’ based sub-sites) where users can subscribe to create web wallets.

https://wordpress.org/

https://codex.wordpress.org/Create_A_Network


2) A WordPress based web wallets’ system. We could create a web wallets’ system based on WordPress,  in which users can deposit the cryptocurrency, withdraw, and transfer it to other users.  Our goal is to create an users’ easy-to-use interface like the one adopted on MannaBase https://www.mannabase.com/ but unfortunately their code is not reusable because is a closed code.  To do that so we could use this open source plugin:
                                                                                                            
https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/

 

The plugin works with a bitcoin/altcoin full node, that in our case is a SOLIDAR FULL NODE.  Then to connect the first plugin to Solidar, we could use this open source plugin that is connected to the SOLIDAR FULL NODE::
https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/coinpayments-adapter-extension/

 
3) A WordPress based UBI donation system. After we have web wallets working on the WordPress site, we need to send cryptocurrency UBI funds to users each month. To do that we could use an open source plugin developped for airdrops, that can be connected to a SOLIDAR FULL NODE
                                                                                                                                          
https://www.dashed-slug.net/airdrop-extension-for-bitcoin-and-altcoin-wallets/
                                                                                                              
5)  A WordPress based multivendor marketplace. After the users have their web wallets and the UBI funds on them, they need to spend them, so we could setup a multivendor marketplace based on Woocommerce plugin and Dokan sub-plugin:
https://woocommerce.com/
https://wedevs.com/dokan/
                                                                                                    
4) A WordPress based dual currency payment gateway
After the multivendor marketplace is created, the users need to pay goods and services using the cryptocurrency in their wallets and the fiat currency in their credit/prepaid cards. The bitcoin/altcoin payment gateway for Woocommerce is already developped and can connected to a SOLIDAR FULL NODE so we could use that open source plugin:
https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/woocommerce-cryptocurrency-payment-gateway-extension/
                                                                                          
and the fiat currencies payment gateway for Woocommerce (based on Paypal) also exists, so we could use this open source plugin:
https://docs.woocommerce.com/document/paypal-standard/


6) A WordPress based dual currency Woocommerce plugin

The dual currency Woocommerce plugin has to be written.

The action required is to write a Woocommerce plugin that has these functions: a) express goods and services’ prices in a cryptocurrency plus in a fiat currency on  Woocommerce.  b) Chain up the Woocommerce altcoins’ payments gateway and the fiat currencies’ payments gateway so to make possible for an user to make a dual currency payment.

Here’s the flow chart of the requested plugin features:
                                                        
?ui=2&ik=ba88a3b822&view=fimg&th=1634bdfb75e0a59a&attid=0.1&disp=emb&realattid=ii_jh0zw7c40_1634bc6c0c6dc768&attbid=ANGjdJ9n1i0VUXu7K75Pv-gXLyMHmTTl_4mpJKujCxRPt7uOOr4FUgQP_5XedJeWCUQaWsCts0S-GuQ6I_VAhVU9pfS4z0XU1eJ9wQxUvb5xZYFhVje7bWpu1TiKz-I&sz=w842-h474&ats=1526202778593&rm=1634bdfb75e0a59a&zw&atsh=1

 

 

So the actions proposed are:

1. start a server with a SOLIDAR FULL NODE

2. create the Woocommerce DUAL CURRENCY PLUGIN  (we will pay for developping it)

 

 

 

Share this post


Link to post
Share on other sites

About starting a server with a SOLIDAR FULL NODE, may be could be useful this guide on how to setup a low cost full node for the starting and testing phase of the Marketplace. If all will work, when some funds will come from vendors, it will be possible to upgrade to a more hardening solution.

 

Share this post


Link to post
Share on other sites
On 6/13/2018 at 1:18 AM, magius said:

Update:

Regarding the second approach, a first attempt was abandoned. The  paid cloud wallet hosting account on CoinPayments costs 120.000 USD/year. That's is an unsustainable cost for a starting phase.

Also unfortunately the SolidarPay plugin for Woocommerce, based on Telegram bot, is not usable at this stage because the process is not automatic. People have to insert data manually for each transaction

 

The payment ID generated needs to be copied and pasted into Facebook messenger, so it is not more complicated that most other payment system. It is usable. The problem with the full node is that the plugin is not yet suited for demurrage as the balance is stored on the website database. And I Coosa get it working atm, so it may needs some adjustments for solidar. 

Rik 

Share this post


Link to post
Share on other sites

I wrote to the developper and he replied me about the coin adapter: As you may already know the RPC adapters have been merged into the Multiadapter Extension. The multiadapter is a much easier way to quickly support bitcoin-like coins. Here's the coin adapter's homepage: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/full-node-multi-coin-adapter-extension/ The list information that you'd need to supply are there. The good news is that once you follow the instructions there is no other development that needs to be done. An example on how to create your own solidar adapter is here: https://gist.github.com/alex-georgiou/11e19523697d4c1a84c83874690466c3
Steps:
1. install the multiadapter,
2. edit this file with the information for your coin
3. Install that file as a plugin
4. Use the plugin to connect to your wallet. Set username, password, IP, port and possibly passphrase.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this