A django app to help you manage the django-shopify-app package billing
Project description
django-shopify-app-billing
This is a Django app that provides billing for Shopify apps. It is designed to be used with the Django Shopify App package
Installation
pip install django-shopify-app-billing
Add billing
to your INSTALLED_APPS
in your Django settings file.
INSTALLED_APPS = [
...
'shopify_app_billing',
...
]
Add the following to your Shop model:
from shopify_app_billing.models import ShopBilling
from shopify_app.models import ShopBase
class Shop(ShopBase):
...
billing = models.OneToOneField(ShopBilling, on_delete=models.CASCADE, null=True, blank=True)
...
def save(self, *args, **kwargs):
if not self.billing:
self.billing = ShopBilling.objects.create()
super().save(*args, **kwargs)
@property
def plan_activated_redirect_path(self):
return f"/dashboard"
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
Built Distribution
Close
Hashes for django_shopify_app_billing-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f70749d848a2ad7285d31c33cf30e2fe71889f346cbc84c9a9054182a0f7625 |
|
MD5 | 5c50170b7de6fe2bec057e3d2bd5cc57 |
|
BLAKE2b-256 | a73713ba4b6cc34c10091f3a1e526babcfbfa73b1fa10f9fdcb8a4fdd57bd718 |
Close
Hashes for django_shopify_app_billing-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44feb928fb7750592440abb1cf749c3e9ab7913634ff2f89e335ff76c1669be1 |
|
MD5 | 962a50f88405ec37b57b226d83ebe12a |
|
BLAKE2b-256 | 90162776a562ea86573757f7190d0880e28f9b44de5c97b1a09a4877a8853335 |