From 28aef98ea30fda061ae05100240386cc3bd3f92b Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 19 Oct 2010 15:40:33 +0200 Subject: [PATCH] tickets: Send a confirmation when a payment is processed. --- tickets/templates/tickets/payed.eml | 22 ++++++++++++++++++++++ tickets/views.py | 1 + 2 files changed, 23 insertions(+) create mode 100644 tickets/templates/tickets/payed.eml diff --git a/tickets/templates/tickets/payed.eml b/tickets/templates/tickets/payed.eml new file mode 100644 index 0000000..e5e9cec --- /dev/null +++ b/tickets/templates/tickets/payed.eml @@ -0,0 +1,22 @@ +{% autoescape off %} +From: Dorestad 1493 +Subject: Reservering Dorestad 1493 betaald + +Beste {{ booking.name }}, + +je hebt {{ booking.tickets }} kaart{{booking.tickets|pluralize:"en"}} gereserveerd voor de Dorestad 1493 +voorstelling op {{ booking.get_show_display }}. + +Je betaling voor deze kaarten is zojuist verwerkt. Je hoeft verder +niets te doen, behalve langs te komen op de voorstelling en je +reserveringsnummer mee te nemen. + +Je reserveringsnummer is: {{ booking.id }} + +Als je nog vragen hebt, kun je contact opnemen met +dorestad@evolution-events.nl. + +Veel plezier bij de voorstelling! + +Evolution Events +{% endautoescape %} diff --git a/tickets/views.py b/tickets/views.py index a06086d..7c9e9fa 100644 --- a/tickets/views.py +++ b/tickets/views.py @@ -109,6 +109,7 @@ def payments(request): for b in bookings: b.payment = datetime.datetime.now() b.save() + confirm_booking(b, 'tickets/payed.eml') # Don't show the form again f = None -- 2.30.2