Skip to main content

Stripe Payment Provider Integration for django-shop

Project description

This integrates the Stripe for django-shop version 0.9 and above.

Installation

for django-shop version 0.9.x:

pip install djangoshop-stripe==0.1.4

for django-shop version 0.10.x:

pip install djangoshop-stripe==0.2.0

Configuration

In settings.py of the merchant’s project:

Add 'shop_stripe' to INSTALLED_APPS.

At Stripe create an account and apply for a public/private key-pair. Then add these keys:

SHOP_STRIPE = {
    'PUBKEY': 'pk_<public-key-as-delivered-by-Stripe>',
    'APIKEY': 'sk_<api-key-as-delivered-by-Stripe>',
    'PURCHASE_DESCRIPTION': _("Thanks for purchasing at MyShop"),
}

Add 'shop_stripe.modifiers.StripePaymentModifier' to the list of SHOP_CART_MODIFIERS.

Add 'shop_stripe.payment.OrderWorkflowMixin' to the list of SHOP_ORDER_WORKFLOWS.

Add 'shop_stripe.context_processors.public_keys' to the list of template OPTIONS['context_processors']

Changes

0.2.1

  • Adopted for django-SHOP version 0.10. Do not use this version for Django-SHOP 0.9.x.

  • Stripe form template can be used by static views, rendering the PaymentMethodForm manually.

0.2.0

  • Replaced bower against npm.

  • Replaced Sekizai block shop-ng-requires against ng-requires.

  • Replaced Sekizai block shop-ng-config against ng-config.

  • Since Ben Drucker is unwilling to provide an installable angular-stripe.js module, it is build and shipped with djangoshop-stripe.

0.1.4

Fixed Python3 compatibility issue.

0.1.3

In django-angular the naming scheme changed. Reflect these changes.

0.1.2

Adopted for asynchronous payments as available in django-shop-0.9.0rc2.

0.1.1

Initial working release.

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

djangoshop-stripe-0.2.1.tar.gz (23.5 kB view details)

Uploaded Source

File details

Details for the file djangoshop-stripe-0.2.1.tar.gz.

File metadata

File hashes

Hashes for djangoshop-stripe-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7f75bc93afb82a0cbfd4faa52ec6b4a38658d292787dbc569340612aa659f627
MD5 af9a9eda55473e992029903ebd47b55f
BLAKE2b-256 9bd4b2ab29fb5a99bb29b2327937d35ce31cd7623af55542971a73debd8f396e

See more details on using hashes here.

Supported by

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