matthouston
unread,Aug 14, 2008, 6:01:00 PM8/14/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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