Stripe Payment Provider Integration for django-shop
Project description
# Stripe Payment Provider Integration for django-shop
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](https://stripe.com/) 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.3.2
* Fixed: Initialize scope of Angular directive `stripe-card-form` even for missing
`data` object.
### 0.3.1
* Fixed: Compute amount in correct currency using Order object instead of defaulting.
### 0.3.0
* Upgrade to ``stripe`` version 1.53 and ``angular-stripe`` version 4.2.13.
### 0.2.2
* Replace ``{% addtoblock "ext-js" %}`` against ``{% addtoblock "js" %}``, since Django-SHOP 0.10.0
can handle externally referenced files as well.
### 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](https://github.com/bendrucker/angular-stripe/issues/50) 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.
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](https://stripe.com/) 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.3.2
* Fixed: Initialize scope of Angular directive `stripe-card-form` even for missing
`data` object.
### 0.3.1
* Fixed: Compute amount in correct currency using Order object instead of defaulting.
### 0.3.0
* Upgrade to ``stripe`` version 1.53 and ``angular-stripe`` version 4.2.13.
### 0.2.2
* Replace ``{% addtoblock "ext-js" %}`` against ``{% addtoblock "js" %}``, since Django-SHOP 0.10.0
can handle externally referenced files as well.
### 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](https://github.com/bendrucker/angular-stripe/issues/50) 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
Release history Release notifications | RSS feed
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.3.2.tar.gz
(23.8 kB
view details)
File details
Details for the file djangoshop-stripe-0.3.2.tar.gz
.
File metadata
- Download URL: djangoshop-stripe-0.3.2.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd31f2b34f80142671d91d49bf8ffb12680af2875311855112873615e94dccb3 |
|
MD5 | 882c1f0c6552a8b1f752c877f7c4a0ee |
|
BLAKE2b-256 | 9e55f7c609b474c308bb4a5a39e422fcf549bf87a8059f4646ab749f904d5f0c |