From bde92720a2bc83ff2f5a4322e5239dcaff52e666 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 16 Jan 2018 13:22:19 +0100 Subject: include resource url --- talerblog/blog/blog.py | 5 +++-- talerblog/blog/templates/purchase.html | 41 ---------------------------------- 2 files changed, 3 insertions(+), 43 deletions(-) delete mode 100644 talerblog/blog/templates/purchase.html (limited to 'talerblog/blog') diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py index 4cdb81d..9894a34 100644 --- a/talerblog/blog/blog.py +++ b/talerblog/blog/blog.py @@ -29,7 +29,7 @@ import base64 import requests import flask from talerblog.talerconfig import TalerConfig -from ..helpers import make_url, join_urlparts +from ..helpers import join_urlparts from ..blog.content import ARTICLES, get_article_file, get_image_file @@ -156,7 +156,7 @@ def article(article_name, data=None): if not order_id: order = dict( summary="Essay: " + article_name.replace("_", " "), - fulfillment_url=make_url("/essay/" + quote(article_name)), + fulfillment_url=flask.request.base_url, amount=ARTICLE_AMOUNT, instance=INSTANCE, ) @@ -167,6 +167,7 @@ def article(article_name, data=None): pay_params = dict( instance=INSTANCE, order_id=order_id, + ressource_url=flask.request.base_url, session_id=session_id, session_sig=session_sig, ) diff --git a/talerblog/blog/templates/purchase.html b/talerblog/blog/templates/purchase.html deleted file mode 100644 index d1baf38..0000000 --- a/talerblog/blog/templates/purchase.html +++ /dev/null @@ -1,41 +0,0 @@ -{% extends "templates/base.html" %} - -{% block main %} - - - - - -
-

- Oops, it looks like you don't have a Taler wallet installed. Why don't you enter - all your credit card details before reading the article? You can also - use GNU Taler to complete the purchase at any time. -

- -
- First name

- Family name

- Age

- Nationality

- Gender
Male - CC number

- Female
-
-
- -
-
- -
- Processing payment with GNU Taler, please wait -
-{% endblock main %} - -{% block body_prelude %} - -{% endblock body_prelude %} - -{% block scripts %} - -{% endblock scripts %} -- cgit v1.2.3