Errors in adding PayPal support

11 views
Skip to first unread message

Kevin Harvey

unread,
Jul 14, 2011, 1:07:02 PM7/14/11
to satchm...@googlegroups.com
Hello all, I've searched a bit on these errors and there doesn't seem to be a solid answer. I'm using Python 2.6, Satcho 0.9-pre.

I've added 'payment.modules.paypal' to settings.py, sync'd the DB, and restarted the server. I've enabled PayPal in the Payment settings, and left everything default except my PayPal email, checked "Accept real payments", and set it to use SSL.

When I click checkout I get PayPal as an option, but continuing on gave me this error:

Traceback (most recent call last):

 File "/home/seemore/webapps/djcode/
lib/python2.5/django/core/handlers/base.py", line 92, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/home/seemore/webapps/djcode/lib/python2.5/django/views/decorators/cache.py", line 44, in _wrapped_view_func
   response = view_func(request, *args, **kwargs)

 File "/home/seemore/lib/python2.5/Satchmo-0.9_pre-py2.5.egg/payment/modules/paypal/views.py", line 31, in pay_ship_info
   'shop/checkout/paypal/pay_
ship.html')

 File "/home/seemore/lib/python2.5/Satchmo-0.9_pre-py2.5.egg/payment/views/payship.py", line 132, in base_pay_ship_info
   results = form_handler(request, contact, working_cart, payment_module)

 File "/home/seemore/lib/python2.5/Satchmo-0.9_pre-py2.5.egg/payment/views/payship.py", line 91, in simple_pay_ship_process_form
   if config_value('PAYMENT','USE_
DISCOUNTS') or not form.shipping_hidden:

AttributeError: 'SimplePayShipForm' object has no attribute 'shipping_hidden'

So i checked my version of satchmo/apps/payment/forms.py and noticed that there's no mention of 'shipping_hidden' anywhere. Looking at newer version of that file it looks to be there, so I added "self.shipping_hidden = False" in the __init__function of that file (line 180). Any comments on the wisdom of that move appreciated :)

Now, I'm getting a different error, which seems to be more common with payment modules:

Traceback (most recent call last):

 File "/home/seemore/webapps/djcode/
lib/python2.5/django/core/handlers/base.py", line 92, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/home/seemore/lib/python2.5/Satchmo-0.9_pre-py2.5.egg/payment/decorators.py", line 28, in _checkorder
   return view_func(request, *args, **kwargs)

 File "/home/seemore/lib/python2.5/Satchmo-0.9_pre-py2.5.egg/payment/views/contact.py", line 81, in contact_info
   url = lookup_url(paymentmodule, 'satchmo_checkout-step2')

 File "/home/seemore/lib/python2.5/Satchmo-0.9_pre-py2.5.egg/satchmo_utils/dynamic.py", line 42, in lookup_url
   url = urlresolvers.reverse(name)

 File "/home/seemore/webapps/djcode/lib/python2.5/django/core/urlresolvers.py", line 265, in reverse
   *args, **kwargs)))

 File "/home/seemore/webapps/djcode/lib/python2.5/django/core/urlresolvers.py", line 254, in reverse
   "arguments '%s' not found." % (lookup_view, args, kwargs))

NoReverseMatch: Reverse for 'satchmo_checkout-step2' with arguments '()' and keyword arguments '{}' not found.

Thanks in advance for looking at this.
Reply all
Reply to author
Forward
0 new messages