update dg
This commit is contained in:
parent
2dff11d446
commit
a493ad225d
105 changed files with 10903 additions and 49 deletions
14
digitalglarus/management/commands/list.py
Normal file
14
digitalglarus/management/commands/list.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
from django.conf import settings
|
||||
import stripe
|
||||
stripe.api_key = settings.STRIPE_API_PRIVATE_KEY
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Record payment plans for Digital Glarus on stripe"
|
||||
|
||||
def handle(self, *args, **options):
|
||||
print("Available plans:")
|
||||
for plan in stripe.Plan.all():
|
||||
print(plan)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue