Skip to content

Commit aeb2580

Browse files
authored
Change payment text and add payment error handling (#2013)
1 parent 102695f commit aeb2580

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/shop/templates/bank_transfer.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ <h2>Pay by Bank Transfer</h2>
7171
<strong>
7272
Remember:
7373
</strong>
74-
Please allow for up to a week before we register your bank transfer,
75-
especially if you are outside of the SEPA region.
74+
You will receive an invoice by email when your payment is registered. Registration of bank transfers is a manual process. We try to do it once per week, but it can sometimes take longer, especially during the winter months. If you are tired of waiting for an invoice drop us <a href="/contact">an email</a>.
7675
</p>
7776
</div>
7877

src/shop/templates/in_person.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
{% block shop_content %}
1010

1111
<h2>Pay In Person</h2>
12-
<p>To pay order #{{ order.id }} you need to <strong>locate an organiser</strong> (in person) and make the payment of <b>{{ order.total|currency }}</b> with cash, card or mobilepay. You need to bring the <strong>order id #{{ order.id }}</strong> as well so we can mark your order as paid.</p>
12+
<p>To pay order #{{ order.id }} you have to go to <strong>info desk</strong> (in person) and make the payment of <b>{{ order.total|currency }}</b> with cash, card or mobilepay (<strong>you cannot pay website orders in HAX!<strong>). You need to bring the <strong>order id #{{ order.id }}</strong> so we know which order to mark as paid.</p>
13+
14+
<p>If physically going to the infodesk is impractical for some reason (due to geography or opening hours), and finding an organiser is inconvenient for you, then you should <a href="{% url 'shop:order_detail' pk=order.id %}">go back</a> and pick a different payment method.</p>
1315

14-
<p>If physically finding an organiser is inconvenient for you (during events you can find us at the Infodesk, but between events geography can make things difficult) you should <a href="{% url 'shop:order_detail' pk=order.id %}">go back</a> and pick a different payment method.</p>
1516
<p>When your order has been marked as paid you will receive an invoice by email.</p>
1617
{% endblock %}

src/shop/views.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,17 @@ def dispatch(self, request, *args, **kwargs):
548548

549549
# create a new coinify invoice if needed
550550
if not order.coinify_api_payment_intent:
551-
coinifyintent = create_coinify_payment_intent(order, request)
551+
try:
552+
coinifyintent = create_coinify_payment_intent(order, request)
553+
except AttributeError:
554+
logger.exception("Unable to get Coinify API url")
555+
messages.error(
556+
self.request,
557+
"Blockchain payment is not working properly at the moment.",
558+
)
559+
return HttpResponseRedirect(
560+
reverse_lazy("shop:order_detail", kwargs={"pk": order.pk}),
561+
)
552562
if not coinifyintent:
553563
messages.error(
554564
request,

0 commit comments

Comments
 (0)