Skip to main content

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"

Metadata

Release files for django-shopify-app-billing 0.0.6

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

Source distribution (sdist)

Source distribution for django-shopify-app-billing 0.0.6
File Size Uploaded
django_shopify_app_billing-0.0.6.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-shopify-app-billing 0.0.6
File Interpreter ABI Platform
django_shopify_app_billing-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / django_shopify_app_billing-0.0.6.tar.gz

Download URL django_shopify_app_billing-0.0.6.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ffd945078d90c22d6bd0566e96a3b65db81a00241ad385c396f2c115ffc24495
BLAKE2b-256 checksum
How to use checksums
e7e001ab5232589fdda0b9fbd10ef8b749e49139a29405b7e0220d15ab3b0114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / django_shopify_app_billing-0.0.6-py3-none-any.whl

Download URL django_shopify_app_billing-0.0.6-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3568a95edd9f2a0c429a031b04320ad619ef8c24345723d49c3aa56bef67120
BLAKE2b-256 checksum
How to use checksums
4faba27fa899e2ce034d28b861f28347b835fe88544cfab643294a60a3429033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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