Now I've gotten credit card processing to work in test mode via 
authorize.net:

$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zc.authorizedotnet.processing import CcProcessor
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "zc/authorizedotnet/processing.py", line 18, in <module>
    import zc.creditcard
ImportError: No module named creditcard
>>> from quix.pay.transaction import CreditCard
>>> from quix.pay.gateway.authorizenet import AimGateway
>>> card = CreditCard(
...     number = '4111111111111111',
...     month = '10',
...     year = '2020',
...     first_name = 'John',
...     last_name = 'Doe',
...     code = '123'
... )
>>> gateway = AimGateway('API ID', 'SECRET KEY')
>>> gateway.use_test_mode = True
>>> gateway.use_test_url = True
>>> response = gateway.authorize(1, card)
>>> print "Authorize Request: %s" % gateway.get_last_request().url
Authorize Request: https://test.authorize.net/gateway/transact.dll
>>> print "Transaction %s = %s: %s" % (response.trans_id,
...                                    
response.status_strings[response.status],
...                                    response.message)
Transaction 0 = Approved: (TESTMODE) This transaction has been approved.
>>> 

I'm going to start using this method and try to add Paypal and other API:s 
accordingly.

Thank you
Niklas 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/mtDErMh3h8kJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to