diff --git a/HISTORY.rst b/HISTORY.rst index 2995fdf36c..5ab037ebed 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,9 +6,12 @@ History 0.1.3 (2013-08-7) ++++++++++++++++++ +* Added account view * Added Customer.get_or_create method -* sync file for all code that keeps things in sync with stripe * Added djstripe_sync_customers management command +* sync file for all code that keeps things in sync with stripe +* Use client-side JavaScript to get history data asynchronously +* More user friendly action views 0.1.2 (2013-08-6) ++++++++++++++++++ diff --git a/djstripe/settings.py b/djstripe/settings.py index 4bd5a62b35..ad33e1c62a 100644 --- a/djstripe/settings.py +++ b/djstripe/settings.py @@ -65,6 +65,12 @@ def load_path_attr(path): "PAYMENTS_TRIAL_PERIOD_FOR_USER_CALLBACK", None ) +PLAN_LIST = [] +for p in settings.PAYMENTS_PLANS: + if settings.PAYMENTS_PLANS[p].get("stripe_plan_id"): + plan = settings.PAYMENTS_PLANS[p] + PLAN_LIST.append(plan) + if PY3: if isinstance(TRIAL_PERIOD_FOR_USER_CALLBACK, str): TRIAL_PERIOD_FOR_USER_CALLBACK = load_path_attr( diff --git a/djstripe/static/img/in-progress.gif b/djstripe/static/img/in-progress.gif new file mode 100644 index 0000000000..3288d1035d Binary files /dev/null and b/djstripe/static/img/in-progress.gif differ diff --git a/djstripe/templates/djstripe/account.html b/djstripe/templates/djstripe/account.html new file mode 100644 index 0000000000..b125173ef3 --- /dev/null +++ b/djstripe/templates/djstripe/account.html @@ -0,0 +1,67 @@ +{% extends "payments/base.html" %} + +{% block title %}Account{% endblock title %} + +{% block content %} + {{ block.super }} +
+ Credit Card on file. + Show card +
++ Next billed on {{ subscription.current_period_end }} + Update credit card +
+Plan | +Interval | +Description | ++ |
---|---|---|---|
{{ plan.name }} | +{{ plan.interval.title }}ly | +{{ plan.description }} | +Your plan | +