Author Topic: First ecommerce bitshares cart plugin dev cycle complete  (Read 52990 times)

0 Members and 1 Guest are viewing this topic.

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Thinking about this more... We can do the following:

Merchant would copy bitshares php lib and php integration files in cart folder

The gateway can be hosted anywhere and doesnt depend on rpc.. it will call the php integration callbacks.

The url of the merchant must be specified when accessing thr gateway.
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline Thom

Hey guys,

I have reworked everything and made a bitshares payment gateway (called it Bitshares Checkout)... I implemented the ecwid cart implementation but the checkout system will be standalone so anyone can integrate with it.. they just have to follow the "API" and implement the 4 or 5 php files I put in the integration folder. I will reuse it to do the rest of the carts, so look and feel will be the same on all implementations.

here is the source again for the ecwid: https://github.com/sidhujag/bitshares-ecwid

here is the demo: http://bitshares.ecwid.com

Go ahead and create a fake order then it will take you to the checkout for bitshares... you can pay via BTS and will be credited for BitUSD orders for testing. I will send all coins back anyways.

Eventually, it would be nice to have a seed list of public bitshares api clients the same way the native clients do it.  I planning to implement this in JavaScript.  We will need everyone to consider a new bitshares_client configuration parameter to enable CORS.  I think this will greatly simplify your plugins.
Ive expressed this to bm about cors already on the http port.  CORS would allow us to load the wallet via the web... can we do everything safely in jslib? You have other usecases in mind?
The plugin must run on the client computer because it will access their wallet to poll for transactions.. did you try the demo?

It's been awhile since I've been in this game, but am quite familiar with the cross domain request problem. Plugins typically operate in a more restrictive environment. Is that the primary reason ajax methods can't be used to accomplish what you can with CORS, or is it a matter of a more convenient and flexible API?

I just reviewed the state of the bitshares.org website (Still wish it used the safe as the image for security and something else for profit, like an image easily related to Wall Street for example). More to the point I also popped over and looked at some of the javascript code there.

I love javascript and scripting languages in general. Back in the day when Microsoft's ASP was the predominant web implementation and everyone and their brother used vbs to create websites, I loathed VB/VBS so I did it all (frontend and backend) in javascript. I also started using jquery in 2009; what a godsend that library is for browser programming! I prefer it over mootools for sure. It's the default client library for the Joomla CMS now, tho I was using it with Joomla long before that was the case.

Never took the time to learn python, ruby or ruby on rails, tho I could see they had strong merits. I keep saying I'm going to take the time to get familiar with python but haven't yet, tho I see it's used heavily now in many applications including an ever increasing role in Linux.

Now I see javascript has essentially been replaced with coffeeScript. Ah how the pace of technology accelerates!
« Last Edit: December 20, 2014, 06:31:05 pm by Thom »
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Hey guys,

I have reworked everything and made a bitshares payment gateway (called it Bitshares Checkout)... I implemented the ecwid cart implementation but the checkout system will be standalone so anyone can integrate with it.. they just have to follow the "API" and implement the 4 or 5 php files I put in the integration folder. I will reuse it to do the rest of the carts, so look and feel will be the same on all implementations.

here is the source again for the ecwid: https://github.com/sidhujag/bitshares-ecwid

here is the demo: http://bitshares.ecwid.com

Go ahead and create a fake order then it will take you to the checkout for bitshares... you can pay via BTS and will be credited for BitUSD orders for testing. I will send all coins back anyways.

Eventually, it would be nice to have a seed list of public bitshares api clients the same way the native clients do it.  I planning to implement this in JavaScript.  We will need everyone to consider a new bitshares_client configuration parameter to enable CORS.  I think this will greatly simplify your plugins.
Ive expressed this to bm about cors already on the http port.  CORS would allow us to load the wallet via the web... can we do everything safely in jslib? You have other usecases in mind?
The plugin must run on the client computer because it will access their wallet to poll for transactions.. did you try the demo?
« Last Edit: December 20, 2014, 02:19:01 pm by jsidhu »
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
@jsidhu: just short ... i'll pause ecommerce page design.. cause we'll completely revamp current site ... no Wordpress etc..

sry man for delay... could you pls tell me what you'll need from me for plugin covers etc?
Also you mentioned you'll need a checkout img/design or whatever!?

We can discuss via skype later on ...
just want you to let you informed ...
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline jamesc

Hey guys,

I have reworked everything and made a bitshares payment gateway (called it Bitshares Checkout)... I implemented the ecwid cart implementation but the checkout system will be standalone so anyone can integrate with it.. they just have to follow the "API" and implement the 4 or 5 php files I put in the integration folder. I will reuse it to do the rest of the carts, so look and feel will be the same on all implementations.

here is the source again for the ecwid: https://github.com/sidhujag/bitshares-ecwid

here is the demo: http://bitshares.ecwid.com

Go ahead and create a fake order then it will take you to the checkout for bitshares... you can pay via BTS and will be credited for BitUSD orders for testing. I will send all coins back anyways.

Eventually, it would be nice to have a seed list of public bitshares api clients the same way the native clients do it.  I planning to implement this in JavaScript.  We will need everyone to consider a new bitshares_client configuration parameter to enable CORS.  I think this will greatly simplify your plugins.

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Hey guys,

I have reworked everything and made a bitshares payment gateway (called it Bitshares Checkout)... I implemented the ecwid cart implementation but the checkout system will be standalone so anyone can integrate with it.. they just have to follow the "API" and implement the 4 or 5 php files I put in the integration folder. I will reuse it to do the rest of the carts, so look and feel will be the same on all implementations.

here is the source again for the ecwid: https://github.com/sidhujag/bitshares-ecwid

here is the demo: http://bitshares.ecwid.com

Go ahead and create a fake order then it will take you to the checkout for bitshares... you can pay via BTS and will be credited for BitUSD orders for testing. I will send all coins back anyways.



Hired by blockchain | Developer
delegate: dev.sidhujag

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
sry for delay jsidhu! Will create a shop plugin page on .org tomorrow ...
Also i'll prepare your checkout headers etc...
No worries I can show u what I got so far so you can see what I mean.
 Ill have it up later will skype you.
Thanks

sounds good
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
sry for delay jsidhu! Will create a shop plugin page on .org tomorrow ...
Also i'll prepare your checkout headers etc...
No worries I can show u what I got so far so you can see what I mean.
 Ill have it up later will skype you.
Thanks
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
sry for delay jsidhu! Will create a shop plugin page on .org tomorrow ...
Also i'll prepare your checkout headers etc...
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Simple carts are good for turnkey businneses and someone looking to stRt marketplace quickly
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
WHMCS working.


WHMCS Demo: http://bitshares.cloudapp.net/whmcs

source: https://github.com/sidhujag/bitshares-whmcs

I have a question:
Since that this cart integrate so seamlessly...
How can I see if a site is supporting payment through bitAssets?
That is really up to the design of the cart software... usually when you checkout you see payment options.. however some carts are better that hook into sites instead of having sites cater to carts. So you would use carts like woocommerce or something on your site and you can put a banner or do whatever you want to show bitassets are supported and market it.

The simple carts take over the whole website there is little room for customization other than logos and stuff.
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline cn-members

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
WHMCS working.


WHMCS Demo: http://bitshares.cloudapp.net/whmcs

source: https://github.com/sidhujag/bitshares-whmcs

I have a question:
Since that this cart integrate so seamlessly...
How can I see if a site is supporting payment through bitAssets?
BTS中文区发言人公共账号,帮助社区有效沟通与交流。
Chinese Community Spokesman Account,to help the effective communication between Chinese and other members of the community.We're not translators to do regular translations , but will help with vital ones as we see fit and available at that time.

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Thanks...
Im back to developing making the bitshares payment gateway independent... will be alot nicer and easier to hook into any shopping cart.
Hired by blockchain | Developer
delegate: dev.sidhujag

iHashFury

  • Guest
http://by24seven.com is available to test a WooCommerce bitshares plugin. PM me when a BETA is ready.

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
you're BTS URI handler still isn't working... same issue as https://bitsharestalk.org/index.php?topic=12119.msg159966#msg159966 ?

Can you try to enter bts:dev.sidhujag in GUI client under File -> Open URL?

This should take you to my delegate page. If you're not connected to the network it won't work it (account does not exist or something like that)... or if you have the command line client running the GUI client won't work and it will show a blank screen (atleast on my windows 7 box)
Hired by blockchain | Developer
delegate: dev.sidhujag