trouble with my first custom payment module

71 views
Skip to first unread message

Daryl

unread,
May 31, 2011, 11:16:48 PM5/31/11
to Satchmo users
I have a custom Bank Transfer module almost setup.It is configurable
in admin and synced no errors ,however when I test it out in the shop
it comes up with this error when I click "continue checkout" (after
i've filled in all my details and selected Bank Transfer for payment):
Could someone give me an idea where to look to fix this? Cheers.
Environment:


Request Method: GET
Request URL: http://localhost:8000/checkout/bank_transfer/

Django Version: 1.3
Python Version: 2.6.4
Installed Applications:
['django.contrib.sites',
'satchmo_store.shop',
'django.contrib.flatpages',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.comments',
'django.contrib.sessions',
'django.contrib.sitemaps',
'registration',
'sorl.thumbnail',
'keyedcache',
'livesettings',
'l10n',
'satchmo_utils.thumbnail',
'satchmo_store.contact',
'tax',
'tax.modules.no',
'tax.modules.area',
'tax.modules.percent',
'shipping',
'south',
'product',
'product.modules.configurable',
'product.modules.custom',
'payment',
'payment.modules.dummy',
'payment.modules.bank_transfer',
'payment.modules.giftcertificate',
'satchmo_ext.satchmo_toolbar',
'satchmo_utils',
'app_plugins',
'store.localsite',
'payment.modules.paypal']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'threaded_multihost.middleware.ThreadLocalMiddleware',
'satchmo_store.shop.SSLMiddleware.SSLRedirect',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')


Traceback:
File "c:\Python26\lib\site-packages\django\core\handlers\base.py" in
get_response
111. response = callback(request,
*callback_args, **callback_kwargs)
File "c:\python26\scripts\src\satchmo\satchmo\apps\payment\modules
\bank_transfer\views.py" in pay_ship_info
19. return payship.base_pay_ship_info(request, payment_module,
payship.simple_pay_ship_process_form,'checkout/bank_transfer/
pay_ship.html')
File "c:\python26\scripts\src\satchmo\satchmo\apps\payment\views
\payship.py" in base_pay_ship_info
179. results = form_handler(request, contact, working_cart,
payment_module)
File "c:\python26\scripts\src\satchmo\satchmo\apps\payment\views
\payship.py" in simple_pay_ship_process_form
148. data={'shipping' :
form.fields['shipping'].initial})
File "c:\python26\scripts\src\satchmo\satchmo\apps\payment\forms.py"
in save
399. processor_module =
payment_module.MODULE.load_module('processor')
File "c:\Python26\lib\site-packages\django_livesettings-1.4_4-py2.6.egg
\livesettings\values.py" in load_module
615. return load_module("%s.%s" % (value, module))
File "c:\Python26\lib\site-packages\django_livesettings-1.4_4-py2.6.egg
\livesettings\utils.py" in load_module
48. __import__(module)

Exception Type: ImportError at /checkout/bank_transfer/
Exception Value: No module named bank_transfer.processor

Chris Moffitt

unread,
Jun 1, 2011, 4:52:20 PM6/1/11
to satchm...@googlegroups.com
Do you have it enabled in the admin /settings?
-Chris


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


Message has been deleted

Daryl

unread,
Jun 1, 2011, 5:37:30 PM6/1/11
to Satchmo users
Hello Chris.Yes it is enabled in admin/settings (it is listed and
all options were functional).The problem only occurs when I have items
that I want to checkout after selecting Bank Transfer.At the point of
redirection to "/checkout/bank_transfer".Cheers.

Daryl

unread,
Jun 2, 2011, 5:29:10 AM6/2/11
to Satchmo users
Also..if I try to change a setting, for the Bank Transfer Module ,in
admin I get the same error.However if I logout of thye Admin and log
back in it says "Updated LIVE on PAYMENT_BANK_TRANSFER", but the
errors still occur.
I don't know if this makes it clearer to anyone that knows the inside
workings of Custom Payment Modules....any ideas out there?

Nan

unread,
Jun 2, 2011, 11:53:10 AM6/2/11
to Satchmo users

Might have something to do with how you're referencing the module. I
notice that in settings.py you're enabling
"payment.modules.bank_transfer" but later on you're trying to import
"bank_transfer.processor".

gg

unread,
Aug 28, 2012, 2:20:20 AM8/28/12
to satchm...@googlegroups.com
Hi Daryl,

I was looking at your thread and curious to know your Bank transfer module. I have a similar requirement where I need to redirect my customer to my bank's url where the actual processing will takes place and based on the payment status (successful or rejection) I need to return my customer back to my site with the transaction code.

I would be interested to know if :-
  • you have successfully installed your bank transfer module
  • if there is anyway you can help me for my problem 

Thanking you in advance.
Cheers
++
Reply all
Reply to author
Forward
0 new messages