getpaid.paypal checkout button

7 views
Skip to first unread message

Matt Barkau

unread,
Aug 5, 2009, 1:19:57 AM8/5/09
to getpa...@googlegroups.com
I'm testing with a vanilla Plone 3.2.1 buildout (cfg attached), following (AFAIK) the getpaid recipe:
http://pypi.python.org/pypi/getpaid.recipe.release/

In the code at:
eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/paypal.py
I see a reference to this button image:
http://www.paypal.com/en_US/i/btn/x-click-but01.gif
but on this plone instance's shopping cart page, I only see two generic plone buttons, called "Continue Shipping" and "Checkout".
Also, all checkouts fail with "We are sorry but your credit card was declined. Please click here to try your transaction again."

Is getpaid.paypal supposed to show the paypal graphic instead of the generic buttons (similar to the way getpaid.googlecheckout does)?  If so, do you see a problem in my buildout.cfg which may be preventing this?
Thanks much!

buildout.cfg

Hannes Calitz

unread,
Aug 5, 2009, 1:36:53 AM8/5/09
to getpa...@googlegroups.com
Hey Matt

As I have got it, the Checkout button you see takes you to a page the shows the PayPal button. This then redirects to the PayPal website for payment.

As for why the checkouts fail; Sorry, there I can't help.

Hannes

2009/8/5 Matt Barkau <rma...@gmail.com>

Mikko Ohtamaa

unread,
Aug 5, 2009, 4:38:44 AM8/5/09
to getpa...@googlegroups.com


> Is getpaid.paypal supposed to show the paypal graphic instead of the generic buttons (similar to the way getpaid.googlecheckout does)?  If so, do you see a problem in my buildout.cfg which may be preventing this?
Thanks much!

Try branch version "standard" or "standard1" which supports multiple payment processors. There was some graphics included. Released version is hopelessly outdated AFAIK.

--
Mikko Ohtamaa
http://www.twinapex.com - Professional Python hackers for hire

Tim Knapp

unread,
Aug 5, 2009, 9:50:17 AM8/5/09
to getpa...@googlegroups.com
On Wed, 2009-08-05 at 11:38 +0300, Mikko Ohtamaa wrote:
>
>
> > Is getpaid.paypal supposed to show the paypal graphic instead of the
> generic buttons (similar to the way getpaid.googlecheckout does)? If
> so, do you see a problem in my buildout.cfg which may be preventing
> this?
> Thanks much!
>
>
>
> Try branch version "standard" or "standard1" which supports multiple
> payment processors. There was some graphics included. Released version
> is hopelessly outdated AFAIK.

Its being used in production with no issues, though. I think I'd say
otoh that if you're having issues with the button not displaying you've
probably not configured getpaid.paypal properly, which would include the
Sandbox email address.

-Tim

Rob LaRubbio

unread,
Aug 5, 2009, 10:51:58 AM8/5/09
to getpa...@googlegroups.com
With getpaud.paypal you have to add a zcml override to your buildout,  So add getpaid.paypal-override to your instance zcml section.  (At least I think that is what you need to add.  Check the egg for the actual file name if that doesn't work)

What that does is allow the paypal processor to override the normal getpaid checkout process with a new page that shows the paypal button and redirects the user over to paypal.

-Rob

Matt Barkau

unread,
Aug 6, 2009, 12:54:09 AM8/6/09
to getpa...@googlegroups.com
Thanks, that explanation matches what I saw.
So I added getpaid.paypal-overrides to the zcml section, but got this error when trying to checkout the cart:
  • Module Products.PloneGetPaid.notifications, line 100, in sendNotification
AttributeError: 'NoneType' object has no attribute 'values'
Full traceback at http://pastie.org/573576

Then per the other filename:
find * -name *zcml | grep paypal
eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/browser/overrides.zcml
eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/overrides.zcml
eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/ipn/configure.zcml
eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/configure.zcml
I added getpaid.paypal.browser-overrides
and got the same error (after stop, buildout, start, of course).

Then, per http://plone.org/documentation/tutorial/buildout/installing-a-third-party-product
I tried adding getpaid.paypal
and got the same error (after stop, buildout, start).

I've attached the buildout.cfg with these 3 lines added.

Thanks much!
buildout.cfg

Lucie Lejard

unread,
Aug 6, 2009, 12:44:55 PM8/6/09
to getpa...@googlegroups.com
It doesn't seem like a paypal issue in this case. Maybe a bug in the
getpaid code?
You might want to look at what is happening in
Products.PloneGetPaid.notifications, line 100, in sendNotification.
Lucie
--
six feet up, inc. | "Nowhere to go but open source"
Direct Line +1 (317) 861-5948 x605
http://www.sixfeetup.com | Zope/Plone Custom Development + Hosting

Rob LaRubbio

unread,
Aug 6, 2009, 1:55:43 PM8/6/09
to getpa...@googlegroups.com
I'm going to try and reproduce this locally.  I think I was the last one messing around in that code, and the paypal processor functions a little differently then the oters.

Matt, can you let me know what version of the getpaid pacakges you are using?  Specifically I care about any getpaid.* eggs and Products.PloneGetPaid

Rob LaRubbio

unread,
Aug 6, 2009, 4:36:51 PM8/6/09
to getpa...@googlegroups.com
This looks liek a bug in the paypal processor.  It is firing off the 'created' transition for an order before it attaches the shopping cart to that order.  You can work around it by turning off email notifications.  I'll make a fix, but I don't have permission to bundle a new getpaid.paypal.  Lucie can you either do that or give me the mojo?

-Rob

Matt Barkau

unread,
Aug 6, 2009, 7:50:04 PM8/6/09
to getpa...@googlegroups.com
Thanks Rob!!

Here are the eggs which buildout delivered to my doorstep:
eggs/getpaid.wizard-0.3-py2.4.egg
eggs/getpaid.paypal-0.4.3-py2.4.egg
eggs/getpaid.recipe.release-1.7-py2.4.egg
eggs/getpaid.nullpayment-0.3.1-py2.4.egg
eggs/getpaid.recipe.release-1.8-py2.4.egg
eggs/getpaid.core-0.7.5-py2.4.egg

Email notifications have all been "Do Not Send" for all of these tests (I think that's default).

Katharine Chartrand

unread,
Aug 8, 2009, 11:03:40 AM8/8/09
to getpaid-dev
FWIW I had the same problem.

I disabled the paypal processor in the buildout. (I wasn't actually
using it)

The problem stopped.

>KNC<

On Aug 6, 5:50 pm, Matt Barkau <rmat...@gmail.com> wrote:
> Thanks Rob!!
>
> Here are the eggs which buildout delivered to my doorstep:
> eggs/getpaid.wizard-0.3-py2.4.egg
> eggs/getpaid.paypal-0.4.3-py2.4.egg
> eggs/getpaid.recipe.release-1.7-py2.4.egg
> eggs/getpaid.nullpayment-0.3.1-py2.4.egg
> eggs/getpaid.recipe.release-1.8-py2.4.egg
> eggs/getpaid.core-0.7.5-py2.4.egg
>
> Email notifications have all been "Do Not Send" for all of these tests (I
> think that's default).
>
> On Thu, Aug 6, 2009 at 3:36 PM, Rob LaRubbio <larub...@gmail.com> wrote:
> > This looks liek a bug in the paypal processor.  It is firing off the
> > 'created' transition for an order before it attaches the shopping cart to
> > that order.  You can work around it by turning off email notifications.
> > I'll make a fix, but I don't have permission to bundle a new
> > getpaid.paypal.  Lucie can you either do that or give me the mojo?
>
> > -Rob
>
> > On Thu, Aug 6, 2009 at 10:55 AM, Rob LaRubbio <larub...@gmail.com> wrote:
>
> >> I'm going to try and reproduce this locally.  I think I was the last one
> >> messing around in that code, and the paypal processor functions a little
> >> differently then the oters.
>
> >> Matt, can you let me know what version of the getpaid pacakges you are
> >> using?  Specifically I care about any getpaid.* eggs and
> >> Products.PloneGetPaid
>
> >> On Thu, Aug 6, 2009 at 9:44 AM, Lucie Lejard <lucielej...@gmail.com>wrote:
>
> >>> It doesn't seem like a paypal issue in this case. Maybe a bug in the
> >>> getpaid code?
> >>> You might want to look at what is happening in
> >>> Products.PloneGetPaid.notifications, line 100, in sendNotification.
> >>> Lucie
> >>> --
> >>> six feet up, inc.  |  "Nowhere to go but open source"
> >>> Direct Line +1 (317) 861-5948 x605
> >>>http://www.sixfeetup.com |  Zope/Plone Custom Development + Hosting
>
> >>> On Thu, Aug 6, 2009 at 12:54 AM, Matt Barkau<rmat...@gmail.com> wrote:
> >>> > Thanks, that explanation matches what I saw.
> >>> > So I added getpaid.paypal-overrides to the zcml section, but got this
> >>> error
> >>> > when trying to checkout the cart:
>
> >>> > Module Products.PloneGetPaid.notifications, line 100, in
> >>> sendNotification
>
> >>> > AttributeError: 'NoneType' object has no attribute 'values'
> >>> > Full traceback athttp://pastie.org/573576
>
> >>> > Then per the other filename:
> >>> > find * -name *zcml | grep paypal
>
> >>> eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/browser/overrides.zcml
> >>> > eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/overrides.zcml
> >>> > eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/ipn/configure.zcml
> >>> > eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/paypal/configure.zcml
> >>> > I added getpaid.paypal.browser-overrides
> >>> > and got the same error (after stop, buildout, start, of course).
>
> >>> > Then, per
>
> >>>http://plone.org/documentation/tutorial/buildout/installing-a-third-p...
> >>> > I tried adding getpaid.paypal
> >>> > and got the same error (after stop, buildout, start).
>
> >>> > I've attached the buildout.cfg with these 3 lines added.
>
> >>> > Thanks much!
>
> >>> > On Wed, Aug 5, 2009 at 9:51 AM, Rob LaRubbio <larub...@gmail.com>
> >>> wrote:
>
> >>> >> With getpaud.paypal you have to add a zcml override to your buildout,
> >>> So
> >>> >> add getpaid.paypal-override to your instance zcml section.  (At least
> >>> I
> >>> >> think that is what you need to add.  Check the egg for the actual file
> >>> name
> >>> >> if that doesn't work)
>
> >>> >> What that does is allow the paypal processor to override the normal
> >>> >> getpaid checkout process with a new page that shows the paypal button
> >>> and
> >>> >> redirects the user over to paypal.
>
> >>> >> -Rob
>
> >>> >> On Tue, Aug 4, 2009 at 10:19 PM, Matt Barkau <rmat...@gmail.com>

Marc Dubrowski

unread,
Aug 18, 2009, 2:31:08 PM8/18/09
to getpaid-dev
I also have the same problem. But unfortunately, i need the paypal
processor.

Any clue for a workaround before the patch is applied ?

Thanks

Marc

On 8 août, 17:03, Katharine Chartrand <katharinechartr...@gmail.com>
wrote:

Marc Dubrowski

unread,
Aug 18, 2009, 2:37:57 PM8/18/09
to getpaid-dev
I also have the same problem. But unfortunately, i need the paypal
processor.

Any clue for a workaround before the patch is applied ?

Thanks

Marc

On 8 août, 17:03, Katharine Chartrand <katharinechartr...@gmail.com>
wrote:

R4inGuy

unread,
Aug 19, 2009, 11:54:18 AM8/19/09
to getpaid-dev
Experiencing a related error and also need Paypal processor.

Problem: user adds an item to cart, then click the "Checkout" button.
The following is returned. It happens regardless of whether a user is
logged in or not (anonymous). Note, all e-mail notifications are
disabled.

Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.Five.browser.metaconfigure, line 417, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
Module Products.PageTemplates.PageTemplate, line 98, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 534, in do_optTag_tal
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 534, in do_optTag_tal
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 223, in
evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL: index
- Line 10, Column 4
- Expression: <PathExpr standard:'view/getButton'>
- Names:
{'container': <PloneSite at /plone_sites/5>,
'context': <PloneSite at /plone_sites/5>,
'default': <object object at 0xb7c92528>,

'here': <PloneSite at /plone_sites/5>,
'loop': {},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass
from /home/eric/Plone-3.1/zinstance/eggs/getpaid.paypal-0.4.3-
py2.4.egg/getpaid/paypal/browser/templates/paypalbutton.pt object at
0xdf186ac>,)},

'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0xdf744ec>,

'request': <HTTPRequest, URL=http://rainwaterservices.com/@@getpaid-
checkout-wizard>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0xd61c16c>,

'traverse_subpath': [],
'user': <PloneUser 'bpg'>,

'view': <Products.Five.metaclass.SimpleViewClass from /home/
eric/Plone-3.1/zinstance/eggs/getpaid.paypal-0.4.3-py2.4.egg/getpaid/
paypal/browser/templates/paypalbutton.pt object at 0xdf186ac>,

'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
object at 0xdf7464c>}

Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 163, in _eval
Module Products.PageTemplates.Expressions, line 125, in render
Module getpaid.paypal.browser.paypalbutton, line 34, in getButton
Module hurry.workflow.workflow, line 238, in fireTransition
Module zope.event, line 23, in notify
Module zope.component.event, line 26, in dispatch
Module zope.component._api, line 130, in subscribers
Module zope.component.registry, line 290, in subscribers
Module zope.interface.adapter, line 535, in subscribers
Module zope.component.event, line 33, in objectEventNotify
Module zope.component._api, line 130, in subscribers
Module zope.component.registry, line 290, in subscribers
Module zope.interface.adapter, line 535, in subscribers
Module Products.PloneGetPaid.notifications, line 100, in
sendNotification
AttributeError: 'NoneType' object has no attribute 'values'


Rob LaRubbio

unread,
Aug 19, 2009, 4:56:36 PM8/19/09
to getpa...@googlegroups.com
That looks like it is the same error.  I've bundled a new version of getpaid (1.9) that should have a fix for this.  Please grab it and let me know how it works for you.

-Rob

Marc Dubrowski

unread,
Aug 20, 2009, 8:29:13 AM8/20/09
to getpaid-dev
Looks like the error message has disappeared. And I indeed arrive at
paypal's sandbox site.

So it looks ok for me.

I still have a little problem, although maybe not getpaid.payal
related: I have no mention of the shipping costs and taxes on the
paypal cart. The info is not transmitted, it seems.

I'm looking forward to solve this.

Thanks a lot, anyway..

Marc






On Aug 19, 10:56 pm, Rob LaRubbio <larub...@gmail.com> wrote:
> That looks like it is the same error.  I've bundled a new version of getpaid
> (1.9) that should have a fix for this.  Please grab it and let me know how
> it works for you.
>
> -Rob
>
> > checkout-wizard<http://rainwaterservices.com/@@getpaid-%0Acheckout-wizard>
> ...
>
> read more »

R4inGuy

unread,
Aug 20, 2009, 10:03:55 AM8/20/09
to getpaid-dev
Rob, your fix seems to have done the trick. My production site is
back up and running. Thanks and great job!

Brian

On Aug 19, 4:56 pm, Rob LaRubbio <larub...@gmail.com> wrote:
> That looks like it is the same error.  I've bundled a new version of getpaid
> (1.9) that should have a fix for this.  Please grab it and let me know how
> it works for you.
>
> -Rob
>
> > checkout-wizard<http://rainwaterservices.com/@@getpaid-%0Acheckout-wizard>
> ...
>
> read more »

Tim Knapp

unread,
Feb 28, 2010, 9:58:53 PM2/28/10
to getpa...@googlegroups.com
Hello Marc,

Sorry about the delay in getting back to you about this (just was going
back through my email archive and noticed your email). Yes you're right,
none of the shipping information is transferred as getpaid.paypal
doesn't currently support this. It just transfers the item total(s).

Thanks,
Tim

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "getpaid-dev" group.
> To post to this group, send email to getpa...@googlegroups.com
> To unsubscribe from this group, send email to getpaid-dev...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
> -~----------~----~----~----~------~----~------~--~---
>


Matt Barkau

unread,
Feb 28, 2010, 10:04:59 PM2/28/10
to getpa...@googlegroups.com
And a belated but hearty thanks to Rob - much appreciated!!


Reply all
Reply to author
Forward
0 new messages