Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

An Amazon Payments package for django-oscar

This package provides integration between django-oscar and Amazon Payments (Login and Pay with Amazon).

Tested with Python 2.7, Django 1.6 and django-oscar 0.7.3.

Setup

Follow the instructions on configuring your website for Login and Pay with Amazon under http://docs.developer.amazonservices.com/en_US/apa_guide/APAGuide_GettingStarted.html. Note that the website setup requires the “Allowed JavaScript origin” to be a HTTPS URL, so you won’t be able to test Amazon Payments integration with a site run using the Django runserver command.

You will also need an Amazon MWS API key and secret key. These are used to interact with the Amazon MWS Off-Amazon Payments API to actually process the payments. See http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_Overview.html

Add ‘amazon_payments’ to your INSTALLED_APPS, and also add the following settings in your django settings:

  • AMAZON_PAYMENTS_ACCESS_KEY

  • AMAZON_PAYMENTS_SECRET_KEY

  • AMAZON_PAYMENTS_SELLER_ID

  • AMAZON_PAYMENTS_CLIENT_ID

  • AMAZON_PAYMENTS_CURRENCY

Other settings:

Sandbox site

The sandbox site demonstrates how you can set up 2 different Amazon Payments checkout procedures:

  1. One-step checkout: User selects the shipping address and payment method in one step. Clicking the “Place order” button will immediately attempt to charge the user’s Amazon account and takes them to the confirmation / thank you page if successful. Assumes there is one shipping method.

  2. Multi-step checkout: The default oscar checkout process.

Automatic Payments

From http://docs.developer.amazonservices.com/en_US/pay_with_amazon_automatic_payments/APAGuide_Introduction.html:

With the automatic payments feature, buyers can pre-authorize payments for future purchases. This enables you to charge a buyer’s Amazon Payments account on a regular basis for subscriptions and usage based billing without requiring the buyer to authorize a payment each time.

Automatic payments are disabled by default. To enable such payments, override the Basket model in your oscar project to add a “has_subscriptions” property that returns True where appropriate. This has been done in the sandbox site, so you will see the “Automatic payments” widget during checkout.

Metadata

Release files for django-oscar-amazon-payments 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for django-oscar-amazon-payments 0.1
File Size Uploaded
django-oscar-amazon-payments-0.1.tar.gz 16.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-oscar-amazon-payments 0.1
File Interpreter ABI Platform
django_oscar_amazon_payments-0.1-py2.7.egg Legacy Egg format - - Details

Total release size: 37.9 kB

Release files / django-oscar-amazon-payments-0.1.tar.gz

Download URL django-oscar-amazon-payments-0.1.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b0bfc0c7984ed005ceb5fdc17f61f7510158c46048913c404e2de15cb6fcdfa1
BLAKE2b-256 checksum
How to use checksums
0c38c783b351fcd2bf1e6c780c0a8e8d355015a3db208d082e89cde9c56d5922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_oscar_amazon_payments-0.1-py2.7.egg

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL django_oscar_amazon_payments-0.1-py2.7.egg
Size 21.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
c1cfd1ac04cf8be6ee3ec253e8b21b35bf72f5582a6f747d50b41b841717bd6d
BLAKE2b-256 checksum
How to use checksums
aa1172a0448687950b2b32ed4167569b7a02793ed40e46bcb13cf0f6bea4fe84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page