'GoogleCheckoutProcessor' object has no attribute 'authorize'

0 views
Skip to first unread message

matthouston

unread,
Aug 14, 2008, 6:01:00 PM8/14/08
to getpaid-dev
When using either sandbox or production Google checkout with PGP .6.1
and Plone 3.1.3, I get the following messaging upon entering my credit
card information and clicking the "make payment" button (debug output
follows traceback):

* Module ZPublisher.Publish, line 119, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 42, in call_object
* Module Products.PloneGetPaid.browser.checkout, line 333, in
__call__
* Module getpaid.wizard._wizard, line 38, in __call__
* Module getpaid.wizard._wizard, line 28, in update
* Module getpaid.wizard._wizard, line 251, in update
* Module Products.PloneGetPaid._patch, line 44, in update
* Module zope.formlib.form, line 750, in update
* Module zope.formlib.form, line 594, in success
* Module Products.PloneGetPaid.browser.checkout, line 595, in
makePayment

AttributeError: 'GoogleCheckoutProcessor' object has no attribute
'authorize'
___________
Line 595 in checkout.py makes this call:

result = processor.authorize( order,
adapters[formSchemas.getInterface('payment')] )

Line 582 is where processor gets created. It reads:
processor = component.getAdapter( self.context,
interfaces.IPaymentProcessor, processor_name )

I put a trace after 582 to see what the processor object looks like at
this point.
_______________________
(Pdb) print processor
<getpaid.googlecheckout.googlecheckout.GoogleCheckoutProcessor object
at 0xb263d40c>
(Pdb) print processor_name
Google Checkout
(Pdb) print self.context
<PloneSite at 5>
(Pdb) print interfaces.IPaymentProcessor
<InterfaceClass getpaid.core.interfaces.IPaymentProcessor>
(Pdb) print processor.authorize
*** AttributeError: 'GoogleCheckoutProcessor' object has no attribute
'authorize'
(Pdb) dir(processor)
['__class__', '__delattr__', '__dict__', '__doc__',
'__getattribute__', '__hash__', '__implemented__', '__init__',
'__module__', '__new__', '__providedBy__', '__provides__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__',
'__weakref__', '_controller', 'checkout', 'checkout_shopping_cart',
'context', 'controller', 'getController', 'notify',
'options_interface']
___________________
So, it looks like component.getAdapter isn't doing its job of
creating processor objects with all the expected attributes, causing
the error.
component comes from line 20:
from zope import component

Not sure how to debug component.
Any help would be appreciated. Thanks! -matthouston






matthouston

unread,
Aug 14, 2008, 6:05:40 PM8/14/08
to getpaid-dev

Michael Dunstan

unread,
Aug 14, 2008, 7:39:51 PM8/14/08
to getpa...@googlegroups.com
On Fri, Aug 15, 2008 at 10:05 AM, matthouston
<er...@alexandriaconsulting.com> wrote:
>
> I see this is the same as Issue 204: http://code.google.com/p/getpaid/issues/detail?id=204#makechanges

I have replied over in that issue.

(And I marked that as "Fixed". On second thoughts I should have left
that open for you to confirm. I'm sure you'll open that up again if
the overrides does not fix the problem.)

--
Michael Dunstan

Christopher Johnson

unread,
Aug 15, 2008, 10:35:37 AM8/15/08
to getpa...@googlegroups.com
Hi Michael,

Thanks for the fix.

I marked the issue as "started" so folks know we need to finalize it with the patch.

Can we please get an update to the 0.6.1 branch before closing and then creation of a tagged from that for 0.6.2?

Thanks!

chris

PS. Remember remote sprint today!! Jump on #getpaid to help out!
--
Cofounder and CEO
ifPeople - Innovation for People
www.ifpeople.net
t: 678-608-3408
130 Boulevard NE, #6
Atlanta, GA 30312
Reply all
Reply to author
Forward
0 new messages