Skip to main content

A thin python wrapper for the fastbill API

Project description

management commands

python manage.py fastbill --update-articles


signals

put this in your models.py

from django_fastbill.signals import customer_signal, subscription_signal, payment_signal
from django.dispatch import receiver


@receiver(customer_signal)
def customer_signal_receiver(sender, customer, event_type, raw_data, **kwargs):
print "#" * 50
print "sender", sender
print "event_type", event_type
print "customer", customer
print "data", raw_data
print "#" * 50


@receiver(subscription_signal)
def subscription_signal_receiver(sender, customer, subscription, event_type, raw_data, **kwargs):
print "#" * 50
print "sender", sender
print "event_type", event_type
print "customer", customer
print "subscription", subscription
print "data", raw_data
print "#" * 50

@receiver(payment_signal)
def payment_signal_receiver(sender, customer, subscription, invoice, event_type, raw_data, **kwargs):
print "#" * 50
print "sender", sender
print "event_type", event_type
print "customer", customer
print "subscription", subscription
print "invoice", invoice
print "data", raw_data
print "#" * 50

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

django-fastbill-0.1.7.tar.gz (15.4 kB view details)

Uploaded Source

File details

Details for the file django-fastbill-0.1.7.tar.gz.

File metadata

File hashes

Hashes for django-fastbill-0.1.7.tar.gz
Algorithm Hash digest
SHA256 61151a0c28bf73fb42dd48d6ffc8b9809843f73a85823b7dd817109cdf06ba40
MD5 16dcaaf2f8b5efdb5d4dd3cb66a38dc2
BLAKE2b-256 6210a725054e2e78f79c3a0d013eb4bc7c2004b15fa4007ecf88444190b5290a

See more details on using hashes here.

Supported by

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