From 791d537b8df7ccd82acae4d009ad423e45f64bd8 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 17 May 2017 09:02:14 +0200 Subject: [PATCH] added user name to paypal button field --- rowers/templates/about_us.html | 12 ++++--- rowers/templates/paypaltest.html | 55 +++++++++++++++++++++++++++++ rowers/templates/promembership.html | 11 +++--- rowers/urls.py | 1 + 4 files changed, 70 insertions(+), 9 deletions(-) create mode 100644 rowers/templates/paypaltest.html diff --git a/rowers/templates/about_us.html b/rowers/templates/about_us.html index b89f6881..5defb350 100644 --- a/rowers/templates/about_us.html +++ b/rowers/templates/about_us.html @@ -123,12 +123,10 @@ of a rowers technique.

Click on the PayPal button to pay for your Premium membership. - It will be valid for one year with automatic renewal which you can stop at any time. + Before you pay, please register for the free Basic membership and log in. + In this way, your user name will be added to the payment details. + Your payment will be valid for one year with automatic renewal which you can stop at any time. You will be taken to the secure PayPal payment site. -

After you do the payment, we will manually change your membership to "Pro". Depending on our availability, this may take some time @@ -138,6 +136,10 @@ You will be taken to the secure PayPal payment site.

+{% if user.is_authenticated %} + + +{% endif %}
diff --git a/rowers/templates/paypaltest.html b/rowers/templates/paypaltest.html new file mode 100644 index 00000000..2183fdcf --- /dev/null +++ b/rowers/templates/paypaltest.html @@ -0,0 +1,55 @@ + + {% extends "base.html" %} + {% block title %}About us{% endblock title %} + {% block content %} +

PayPal Test Button

+ +
+ +

This is a test page for testing the paypal functionality. Do not use it.

+ +

Donations are welcome to keep this web site going. To help cover the hosting +costs, I have created a Pro membership option (for only 15 EURO per year). Once I process your +donation, I will give you access to some special features on this +website.

+ +

Currently, the Pro membership will give you the following extra functionality (and more will follow): +

+

+

Click on the PayPal button to pay for your Pro membership. Before you pay, please register for the free Basic membership and log in. + In this way, your user name will be added to the payment details. +Your payment will be valid for one year with automatic renewal which you can stop at any time. +You will be taken to the secure PayPal payment site. +

+
+ +
+
+ + +{% if user.is_authenticated %} + + +{% endif %} + + +
+ + + +

After you do the payment, we will manually change your membership to + "Pro". Depending on our availability, this may take some time + (typically one working day). Don't hesitate to contact us + if you have any questions at this stage.

+ +

If, for any reason, you are not happy with your Pro membership, please let me know through the contact form. I will contact you as soon as possible to discuss how we can make things better.

+ +
+ + + {% endblock content %} diff --git a/rowers/templates/promembership.html b/rowers/templates/promembership.html index 76e228aa..4339a5d6 100644 --- a/rowers/templates/promembership.html +++ b/rowers/templates/promembership.html @@ -19,11 +19,10 @@ website.

  • Power histogram
  • -

    Click on the PayPal button to pay for your Pro membership. It will be valid for one year with automatic renewal which you can stop at any time. +

    Click on the PayPal button to pay for your Pro membership. Before you pay, please register for the free Basic membership and log in. + In this way, your user name will be added to the payment details. +Your payment will be valid for one year with automatic renewal which you can stop at any time. You will be taken to the secure PayPal payment site. -

    @@ -31,6 +30,10 @@ You will be taken to the secure PayPal payment site.
    +{% if user.is_authenticated %} + + +{% endif %}
    diff --git a/rowers/urls.py b/rowers/urls.py index 56c90669..dbb5fcd9 100644 --- a/rowers/urls.py +++ b/rowers/urls.py @@ -274,6 +274,7 @@ urlpatterns = [ url(r'^videos', TemplateView.as_view(template_name='videos.html'),name='videos'), url(r'^analysis', TemplateView.as_view(template_name='analysis.html'),name='analysis'), url(r'^promembership', TemplateView.as_view(template_name='promembership.html'),name='promembership'), + url(r'^paypaltest', TemplateView.as_view(template_name='paypaltest.html'),name='paypaltest'), url(r'^legal', TemplateView.as_view(template_name='legal.html'),name='legal'), url(r'^register$',views.rower_register_view), url(r'^register/thankyou/$', TemplateView.as_view(template_name='registerthankyou.html'), name='registerthankyou'),