eStore appliance

73 views
Skip to first unread message

suiato

unread,
May 31, 2009, 1:20:21 PM5/31/09
to web2py Web Framework
I have run an appliance eStore, and it works fine except that I cannot
set parameters under Merchant ID at http://localhost:8000/eStore/manage/setup
because the condition form.accepts(request.vars,session) in setup() is
false. Is it because I don't have an official Merchant ID?

I am yet to learn debugging in Python/web2py, and will appreciate an
advice on the issue.

---
Teru

mdipierro

unread,
May 31, 2009, 4:51:59 PM5/31/09
to web2py Web Framework
That will prevent users from buying but should not cause the problem
you mention.

Try replace

def setup():
response.view='manage/setup.html'
form=SQLFORM(store.info,mystore)
if form.accepts(request.vars,session):
response.flash='that was easy! now go vist your store.'
else:
response.flash='welcome to the store setup'
return dict(form=form)


with

def setup():
response.view='manage/setup.html'
form=SQLFORM(store.info,mystore)
if form.accepts(request.vars,session):
response.flash='that was easy! now go vist your store.'
else:
print form.errors
response.flash='welcome to the store setup'
return dict(form=form)

And let me know what it prints.

On May 31, 12:20 pm, suiato <Homm...@gmail.com> wrote:
> I have run an appliance eStore, and it works fine except that I cannot
> set parameters under Merchant ID athttp://localhost:8000/eStore/manage/setup

suiato

unread,
May 31, 2009, 9:15:24 PM5/31/09
to web2py Web Framework
Thanks, Massimo.

Very encouraging to have a kind response from you.

Looking closely, I noticed I overlooked the error messages "too small
or too large!" under the boxes for Ship Fedex *bc. Initially these
boxes were empty. When I put 0.0 into these boxes at
http://127.0.0.1:8000/eStore/manage/setup, I got a happy flash message
"that was easy! now go vist your store." :-)

I still haven't figured out why the boxes for Ship Fedex *bc were
initially empty while store.py in models specified 0 as default, but
am happy to see that the appliance is working without errors now.

Google checkout is a good choice, but its offer for sellers seems not
to be available in Japan yet. I look forward to using it in Japan
sometime later. Meanwhile, I plan to customize the codes for other
checkout routines. Is there such codes in Python/web2py already
available somewhere, like PayPal's? I will appreciate information or
pointers with regard to codes for checkout.

Cheers,
Teru

mdipierro

unread,
May 31, 2009, 10:52:52 PM5/31/09
to web2py Web Framework
> Google checkout is a good choice, but its offer for sellers seems not
> to be available in Japan yet. I look forward to using it in Japan
> sometime later. Meanwhile, I plan to customize the codes for other
> checkout routines. Is there such codes in Python/web2py already
> available somewhere, like PayPal's? I will appreciate information or
> pointers with regard to codes for checkout.

sorry, if there is I do not have it.

mingodad

unread,
Jul 3, 2009, 12:36:37 PM7/3/09
to web2py Web Framework
I was caught too by the error messages "too small or too large"
I sugest to add the folowing to the css part on layout.html:

.error { background-color: red; color: white; padding: 3px }

It was borroed from T3, this way the error messages will not pass
unnoticed.

As well I'm intrigged why the *_bc fields doesn't get the default
values like the others !

mdipierro

unread,
Jul 3, 2009, 12:41:18 PM7/3/09
to web2py Web Framework
eStore is now an old app. It needs lots of work.

Massimo

suiato

unread,
Jul 4, 2009, 12:20:58 AM7/4/09
to web2py Web Framework
just restarted to work on eStore yesterday, trying to use it as a
reference for one of my projects.
it's a good and useful example for me to learn translation and system
in web2py.

Google checkout for merchants is still not available in countries
other than US and UK, though its application pages now appear here in
Japanese...

Found an appliance PayPal Engine by Matt Sellers at http://mdp.cti.depaul.edu/appliances.
Could be integrated into eStore?

eStore may be old and need a lot of work to be a full-fledged e-
commerce appliance. It'd be nice to have it that way,
but there's another interest in removing fluffy parts and trimming
down to its skeleton. This way, logics will be revealed
more clearly, easy to understand the structure, and easy to extend it
as necessary.

Dreaming a dream of the skeletal eStore to be applied to various
devices like iPhone, mobiles, PDA and others without changing its
logical core...

--
Teru


On 7月4日, 午前1:41, mdipierro <mdipie...@cs.depaul.edu> wrote:
> eStoreis now an old app. It needs lots of work.

mdipierro

unread,
Jul 4, 2009, 1:45:32 AM7/4/09
to web2py Web Framework
Not sure that works. I never tried it. eStore works with google
checkout and that is more solid than paypal

massimo

On Jul 3, 11:20 pm, suiato <Homm...@gmail.com> wrote:
> just restarted to work on eStore yesterday, trying to use it as a
> reference for one of my projects.
> it's a good and useful example for me to learn translation and system
> in web2py.
>
> Google checkout for merchants is still not available in countries
> other than US and UK, though its application pages now appear here in
> Japanese...
>
> Found an appliance PayPal Engine by Matt Sellers athttp://mdp.cti.depaul.edu/appliances.

gluegl

unread,
Jul 4, 2009, 8:26:45 AM7/4/09
to web2py Web Framework
With all due respect...
http://www.prestashop.com/ (open source)
A Web2Py Prestashop would be a significantly better approach.

Sincerely,
G

mdipierro

unread,
Jul 4, 2009, 11:47:15 AM7/4/09
to web2py Web Framework
If build anything in this area let us know. I am very much interested.

On Jul 4, 7:26 am, gluegl <edpime...@gmail.com> wrote:
> With all due respect...http://www.prestashop.com/ (open source)

Benigno

unread,
Jul 10, 2009, 12:45:48 PM7/10/09
to web2py Web Framework
Hey,

I just happen to have been playing around both with estore and
with the Paypal Engine that Matt did. (I have the same problem you do,
UK is the only country that gets some of googles love in europe, the
rest go way behind, so no google checkout here either). Actually
Google checkout works only in US, UK (and Canada maybe, if I recall
correctly)

Anyways, the Engine that Matt did, does NVP, which allows you to
integrate Paypal to a different level than most people probably need
(which is much more simmilar to what Massimo has on his EStore app).
Right now on the Engine that Matt did, you only have the
DoDirectPayment already setup (which is to process the data of a
transaction for which you hold all the customers data including credit
card etc). If you need to do the whole checkout with Paypal with NVP,
its a longer process, if I remember ok, you actually first stablish a
connection, then you get a token from paypal validating it, you
redirect to a URL with that token, then then you get the validation of
all the data from the customer, then you process your cart confirming
the sale, and get another response giving you the data you would need
to show the customer the receipt... its something like this.

However, there is a very simple way to set it up that works almost
exactly like what Massimo shows for google. I am just in the process
of modifying EStore to put it in place in a very simplified way, but I
am sure you can take it up from there to do whatever you want. I'll
send it to Massimo if its ok, as I am building a bit over his code,
and would rather he posts it if he feels its ok. I'll try to have it
by next monday.

Cheers,
Benigno.

On 4 jul, 06:20, suiato <Homm...@gmail.com> wrote:
> just restarted to work on eStore yesterday, trying to use it as a
> reference for one of my projects.
> it's a good and useful example for me to learn translation and system
> in web2py.
>
> Google checkout for merchants is still not available in countries
> other than US and UK, though its application pages now appear here in
> Japanese...
>
> Found an appliancePayPalEngine by Matt Sellers athttp://mdp.cti.depaul.edu/appliances.

mdipierro

unread,
Jul 10, 2009, 3:57:21 PM7/10/09
to web2py Web Framework
I am very much interested in building a new and more powerful eStore.
I think we need to setup a task force of people interested int his and
build one all together. We need somebody willing coordinate and be
project leader.

Massimo

suiato

unread,
Jul 12, 2009, 9:33:36 AM7/12/09
to web2py Web Framework
Hi Benigno, thanks for commenting and info on Paypal NVP. I hope to
be able to try out your code on eStore when it becomes available.

As another e-commerce example, I know EC-CUBE (http://www.ec-
cube.net), which is open-source, written in PHP, and lists support
for credit payment procedures with Paygent, Webmoney, Softbank payment
service, GMO payment gateway, F-REGI, Zeus, Sophia, Epsilon and
remise. Couldn't find support for Paypal or Goole Checkout. Sorry the
site is only in Japanese. It is managed by a company who provides
voluntary services for the community as well as paid support services
to its customers. It calls for developers, committers, partners for
hosting, integration, alliance and design.

It keeps adding features, and now has nice ones including mobile
support, collaboration with SNS, etc. It has wide user-base, and
developer community backed by a company, and it worked fine when I
tried to test-install. So, why not using it instead of developing
another one? Well, I'd like to use Python and web2py because I think
they have a chance to make better applications and development
processes now and in the future.

It is impressive to see it lists a number of agents for payment. Would
it be difficult to port them to Python or web2py? I suppose it
shouldn't be too difficult once the logics layed out clearly, but
others believe it only when it's proven/done. Unfortunately, I'm not
an expert in PHP.

I'm thrilled to hear that Massimo has strong interest in building a
new and more powerful eStore. I will be interested in joining the task
force if I find a role to play in the development.

The discussion on the task forces going on in another thread is
drawing a lot of attention and really "flourishing" :-) I saw
discussion on esablishing development procedures, creating
documentation basis/system, etc. It's good to find out what people
want/need thru these discussions. Hope eventually things will be
sorted out, and we'll see a good plan including one on eStore task
force.

--
Teru
> > of modifyingEStoreto put it in place in a very simplified way, but I
> > am sure you can take it up from there to do whatever you want. I'll
> > send it to Massimo if its ok, as I am building a bit over his code,
> > and would rather he posts it if he feels its ok. I'll try to have it
> > by next monday.
>
> > Cheers,
> > Benigno.
>
> > On 4 jul, 06:20, suiato <Homm...@gmail.com> wrote:
>
> > > just restarted to work oneStoreyesterday, trying to use it as a
> > > reference for one of my projects.
> > > it's a good and useful example for me to learn translation and system
> > > in web2py.
>
> > > Google checkout for merchants is still not available in countries
> > > other than US and UK, though its application pages now appear here in
> > > Japanese...
>
> > > Found an appliancePayPalEngine by Matt Sellers athttp://mdp.cti.depaul.edu/appliances.
> > > Could be integrated intoeStore?
>
> > >eStoremay be old and need a lot of work to be a full-fledged e-
> > > commerce appliance. It'd be nice to have it that way,
> > > but there's another interest in removing fluffy parts and trimming
> > > down to its skeleton. This way, logics will be revealed
> > > more clearly, easy to understand the structure, and easy to extend it
> > > as necessary.
>
> > > Dreaming a dream of the skeletaleStoreto be applied to various

Benigno

unread,
Jul 13, 2009, 7:56:17 AM7/13/09
to web2py Web Framework
Suiato,

I have just sent the code to Massimo, I dont know if the format I
sent it will be ok, or if the code will be ok. But if you are in a
hurry what you need is actually very simple:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr"
method="post">
<!-- Select the correct button depending on country etc.
If you can do it with pregenerated buttons (with prices included
etc)
then so much the better for security -->
<input type="hidden" name="business" value="{{=paypal_id}}" />
<input type="image" src="https://www.sandbox.paypal.com/es_XC/i/
btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The
safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/es_XC/i/
scr/pixel.gif" width="1" height="1">
<form action="http://www.sandbox.paypal.com/cgi-bin/webscr"
method="post" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="display" value="1"/>
<input type="hidden" name="shopping_url" value="www.google.com"/>
{{k=1}}
{{for id,product in products.items():}}
<input type="hidden" name="item_name_{{=k}}"
value="{{=product.name}}"/>
<input type="hidden" name="quantity_{{=k}}"
value="{{=session.chart[str(id)]}}"/>
<input type="hidden" name="tax_{{=k}}"
value="{{=product.price*product.tax_rate_in_your_state}}"/>
<input type="hidden" name="amount_{{=k}}"
value="{{=product.price}}"/>
{{k+=1}}
{{pass}}
</form>

This creates a button for you. You should however, start by creating a
sandbox user, then create test accounts for the seller and buyer,
validate both accounts, and then from the seller account, make
yourself a button (so that you have it localised) and put the rest of
the fields missing as you see above.

Actually, I tried to use the encrypted user that the buttons generate,
but it didnt work for me, and had to make the user visible. I will try
further at a later stage, if you find out how to further secure the
button, I'll be happy to learn. I didnt find anything else when
uploading a whole cart with the details without setting up each item
separatedly with their prices in paypal.

Benigno.

On 12 jul, 15:33, suiato <Homm...@gmail.com> wrote:
> Hi Benigno, thanks for commenting and info onPaypalNVP.  I hope to
> be able to try out your code on eStore when it becomes available.
>
> As another e-commerce example, I know EC-CUBE (http://www.ec-
> cube.net), which is open-source, written in PHP,  and lists support
> for credit payment procedures with Paygent, Webmoney, Softbank payment
> service, GMO payment gateway, F-REGI, Zeus, Sophia, Epsilon and
> remise. Couldn't find support forPaypalor Goole Checkout. Sorry the
> > > with thePaypalEngine that Matt did. (I have the same problem you do,
> > > UK is the only country that gets some of googles love in europe, the
> > > rest go way behind, so no google checkout here either). Actually
> > > Google checkout works only in US, UK (and Canada maybe, if I recall
> > > correctly)
>
> > >     Anyways, the Engine that Matt did, does NVP, which allows you to
> > > integratePaypalto a different level than most people probably need
> > > (which is much more simmilar to what Massimo has on hisEStoreapp).
> > > Right now on the Engine that Matt did, you only have the
> > > DoDirectPayment already setup (which is to process the data of a
> > > transaction for which you hold all the customers data including credit
> > > card etc). If you need to do the whole checkout withPaypalwith NVP,
> > > its a longer process, if I remember ok, you actually first stablish a
> > > connection, then you get a token frompaypalvalidating it, you

suiato

unread,
Jul 24, 2009, 1:26:06 AM7/24/09
to web2py-users
Hi Benigno and all,

I found an announcement
"PayPal to Become First Truly Global Payment Platform Open to Third-
Party Developers"
at https://www.paypal-media.com/releasedetail.cfm?ReleaseID=398758

Will the API be useful to find a better way to incorporate PayPal into
the eStore applicance?

--
Teru
> > be able to try out your code oneStorewhen it becomes available.
>
> > As another e-commerce example, I know EC-CUBE (http://www.ec-
> > cube.net), which is open-source, written in PHP,  and lists support
> > for credit payment procedures with Paygent, Webmoney, Softbank payment
> > service, GMO payment gateway, F-REGI, Zeus, Sophia, Epsilon and
> > remise. Couldn't find support forPaypalor Goole Checkout. Sorry the
> > site is only in Japanese.  It  is managed by a company who provides
> > voluntary services for the community as well as paid support services
> > to its customers. It calls for developers, committers, partners for
> > hosting, integration, alliance and design.
>
> > It keeps adding features, and now has nice ones including mobile
> > support, collaboration with SNS, etc. It has wide user-base, and
> > developer community backed by a company, and it worked fine when I
> > tried to test-install. So, why not using it instead of developing
> > another one? Well, I'd like to use Python and web2py because I think
> > they have a chance to make better applications and development
> > processes now and in the future.
>
> > It is impressive to see it lists a number of agents for payment. Would
> > it be difficult to port them to Python or web2py? I suppose it
> > shouldn't be too difficult once the logics layed out clearly, but
> > others believe it only when it's proven/done. Unfortunately, I'm not
> > an expert in PHP.
>
> > I'm thrilled to hear that Massimo has strong interest in building a
> > new and more powerfuleStore. I will be interested in joining the task

Benigno

unread,
Jul 24, 2009, 3:07:13 AM7/24/09
to web2py-users
Hello Teru,

I expect that if they develope something, it will certainly be an
improvement over what is already in existance, and will be worth
having a look at to see if the effort is worth it or not.

You see, with these kind of interfaces to paypal and the likes,
what happens is that there are more than one way to do things, and the
correct way, ussually depends on the customer and their particular
needs.

My point of view on this has been probably an over simplification:
"If the customer needs an incredible level of integration, it is
because they are selling a lot. And if they are selling a lot, they
definetelly DONT want their customers paying through paypal or google
(they'd rather pay for a merchant account and get a much lower rate
per sale, as this adds to a lot of money, plus they can agree to other
terms with their bank) or whoever else, EXCEPT for the fact that these
providers do provide ways to increase their sales. If I am in a case
like that, I am sure I will need to develope everything from scratch
and work with them towards whatever they want specifically.

So I decided to work on the most basic programatical integration
(vs the express checkout, that does not require programming, but is
very limited), that may allow to upload a cart, and gone a couple
steps further to cover a bit vs attempts at fraud by implementing PDT
and IPN to process the information validated by Paypal.

I am going to be writing an article on that as soon as I get the
time. Problem is, I am going to be away for a month or so now, so it
will probably have to wait till end of August.

Regarding estore, I have ended up rewriting it, but its not really
a store now but a simplified wedding gift list application.

Cheers,
Benigno.

On 24 jul, 07:26, suiato <Homm...@gmail.com> wrote:
> Hi Benigno and all,
>
> I found an announcement
> "PayPal to Become First Truly Global Payment Platform Open to Third-
> Party Developers"
> athttps://www.paypal-media.com/releasedetail.cfm?ReleaseID=398758

LoveWeb2py

unread,
Jun 14, 2014, 4:16:46 PM6/14/14
to web...@googlegroups.com
Did this ever materialize? I hate prestashop and would LOVE to use web2py as a replacement.
Reply all
Reply to author
Forward
0 new messages