Python Programming - Page 2
Python Programming RSS feed-
Authorize.Net Credit Card Form in Django
This Django form will submit credit card data to a payment gateway such as Authorize.Net when the form is validated. If the payment is not accepted then the error response from the payment gateway is added to the form's non field errors as shown in the image to the left.
This is a follow to yesterday's post, Accept Credit Cards in Django with Authorize.Net, in which I introduced a very simple example using the quix.pay Python module to process credit cards in a Django project. This moves the payment gateway request into the Form object rather than the view. It also moves some of those configurations into your typical Django settings.
At some point in the future a finalized version of this technique may be packaged and released by Quixotix Software (open-source of course) but in the mean time I thought I would share you how you might implement this on your own.
-
Accept Credit Cards in Django with Authorize.Net
Accepting credit cards in your Django applications using the Authorize.Net payment gateway is easier than you might think. Using the quix.pay Python module to do the heavy lifting with Authorize.Net, all you need to get started is a simple Django form.
You will need to either download quix.pay and install it using the setup.py script or download and install quix.pay using the easy_install command:
easy_install quix.pay
-
Authorize.NET Payment Gateway in Python
Here are a few examples and information about quix.pay, a Python module from Quixotix Software for processing credit cards using online payment gateways like Authorize.Net.
-
MagTek Credit Card Reader in Linux
I recently purchased a MagTek USB Swipe Reader
to use as a credit card reader for a point-of-sale system I'm developing for my company. Since the POS system is written in Python and GTK+, and will be running on Ubuntu Linux, I needed to be able to interface with this credit card reader in Python and Ubuntu as well.
These are my adventures in getting the MagTek USB Swipe Reader to work in Ubuntu 10.10 (Maverick Meerkat). I hope this information helps others out there tinkering with credit card swipe readers in Linux.



