Private
Public Access
1
0

added user name to paypal button field

This commit is contained in:
Sander Roosendaal
2017-05-17 09:02:14 +02:00
parent b569fb2c46
commit 791d537b8d
4 changed files with 70 additions and 9 deletions

View File

@@ -123,12 +123,10 @@ of a rowers technique.</p>
<p>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 <a href="/rowers/register">register</a> 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.
<ul>
<li>Please mention the username you are registered under in
"instructions to seller".</li>
</ul>
</p>
<p>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.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="964GLEXX3THAW">
{% if user.is_authenticated %}
<input type="hidden" name="os0" value="{{ user }}">
<input type="hidden" name="on0" value="username">
{% endif %}
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG_global.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>