2016-04-28 17:42:01 +00:00
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from django.conf import settings
|
|
|
|
import stripe
|
|
|
|
stripe.api_key = settings.STRIPE_API_PRIVATE_KEY
|
|
|
|
|
2017-06-29 14:34:40 +00:00
|
|
|
|
2016-04-28 17:42:01 +00:00
|
|
|
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)
|