-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #296 from stianjensen/donation-plus
Upgrade donation flow
- Loading branch information
Showing
5 changed files
with
51 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,3 @@ CACHES = { | |
}, | ||
} | ||
""" | ||
|
||
# Paypal donations | ||
PAYPAL_DONATION_PKCS7 = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,29 +114,54 @@ <h1 class="float-left serif"><a class=header-logo-link href=/> | |
<div class=donation-appeal> | ||
Wikipendium is ad-free and costs nothing to use. | ||
Please help keep Wikipendium alive by donating today! | ||
|
||
<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=encrypted | ||
value="{{ PAYPAL_DONATION_PKCS7 }}" | ||
/> | ||
<input | ||
type=image | ||
src=https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif | ||
border=0 | ||
name=submit | ||
alt="PayPal - The safer, easier way to pay online!" | ||
/> | ||
<label> | ||
<input | ||
type=radio | ||
name=amount | ||
value="20.00" | ||
/> | ||
20 kr | ||
</label> | ||
|
||
<label> | ||
<input | ||
type=radio | ||
name=amount | ||
value="50.00" | ||
checked | ||
/> | ||
<strong>50 kr</strong> | ||
</label> | ||
|
||
<label> | ||
<input | ||
type=radio | ||
name=amount | ||
value="100.00" | ||
/> | ||
100 kr | ||
</label> | ||
|
||
<input type=hidden name=cmd value=_donations> | ||
<input type=hidden name=business value=[email protected]> | ||
<input type=hidden name=item_name value="Wikipendium donation"> | ||
<input type=hidden name=currency_code value=NOK> | ||
<div> | ||
<input type=image | ||
src=https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif | ||
border=0 | ||
name=submit | ||
alt="PayPal - The safer, easier way to pay online!" | ||
/> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
</footer> | ||
|