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 Provenance Actions
django_shopify_app_billing-0.0.6.tar.gz 4.4 kB Without provenance Details for django_shopify_app_billing-0.0.6.tar.gz

Built distribution (wheel)

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

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

Security for django-shopify-app-billing 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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