Skip to main content

Django wrapper for SunTech BuySafe (TM).

Project description

=====
Buysafe
=====

Buysafe bundles SunTech BuySafe (TM) posting and receiving routines into Django forms and views, and provides an admin view for payment method management.

Dependency
-----------

If you want to use the default product info handler, you need to use Cartridge as your ecommerce backend. If you provide your own info handler, all you need is Django.

Quick start
-----------

1. Add :code:`buysafe` to your :code:`INSTALLED_APPS` setting:

::

INSTALLED_APPS = (
...
'buysafe',
...
)

2. If you don't use Cartridge, add :code:`BUYSAFE_FORM_VALUES_GENERATOR` in your settings to specify a custom handler. The handler should accept :code:`**kwargs`, which contains values in the :code:`request.POST` dictionary.

3. Run :code:`python manage.py migrate buysafe`.

4. Go to your admin and add some payment methods.

5. To pay for an order, use POST to submit a form to view:code:`buysafe_start` with the values to pass to the product info handler. The default handler needs an :code:`order_id` field. This brings up a view to initiate the payment process.

6. Profit!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-buysafe-0.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

django_buysafe-0.2-py27-none-any.whl (14.0 kB view details)

Uploaded Python 2.7

File details

Details for the file django-buysafe-0.2.tar.gz.

File metadata

File hashes

Hashes for django-buysafe-0.2.tar.gz
Algorithm Hash digest
SHA256 e7199d235cd6f4659e1d675df229d8d35ca7d52947a25cdf6430ae6c617ef7c1
MD5 3954c9ca7230e789f3cf25cc6236af1b
BLAKE2b-256 ebc5603224296f7da494803dc1831c5edf2418d7bc3170f92b490f97762600a9

See more details on using hashes here.

File details

Details for the file django_buysafe-0.2-py27-none-any.whl.

File metadata

File hashes

Hashes for django_buysafe-0.2-py27-none-any.whl
Algorithm Hash digest
SHA256 83fb55740974916bf77b3362f4558876fe4bd53010c58c0a94fb8ee662ccb56f
MD5 6df19f4474392e69b5955b2fe35e5146
BLAKE2b-256 50fe10ae8c31eeec037ae320af8c39df17585fe5044aec24e2c2079bc4b76cae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page