[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: remove TALER_SUGGESTED_EXCHANGE_PAYT
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: remove TALER_SUGGESTED_EXCHANGE_PAYTO |
Date: |
Wed, 22 Jan 2020 15:48:50 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 2b9e360 remove TALER_SUGGESTED_EXCHANGE_PAYTO
2b9e360 is described below
commit 2b9e3608fe308261936694d8571049a07d1777a0
Author: Florian Dold <address@hidden>
AuthorDate: Wed Jan 22 15:48:44 2020 +0100
remove TALER_SUGGESTED_EXCHANGE_PAYTO
---
talerbank/app/schemas.py | 2 +-
talerbank/app/views.py | 8 +++-----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/talerbank/app/schemas.py b/talerbank/app/schemas.py
index 291ec5b..6c08acf 100644
--- a/talerbank/app/schemas.py
+++ b/talerbank/app/schemas.py
@@ -238,7 +238,7 @@ class WithdrawHeadless(BankValidator):
]
)
reserve_pub = forms.CharField(required=True)
- exchange_wire_details = PaytoField(required=False)
+ exchange_payto_uri = PaytoField(required=True)
class WithdrawHeadlessUri(BankValidator):
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index f3fdbcc..35a503d 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -966,12 +966,10 @@ def withdraw_headless(request, user):
sender_payto = f"payto://x-taler-bank/{h}/{user.username}"
ret_obj = {"sender_wire_details": sender_payto}
- exchange_payto = data.get("exchange_wire_details")
+ exchange_payto = data.get("exchange_payto_uri")
if not exchange_payto:
- exchange_accno =
get_acct_from_payto(settings.TALER_SUGGESTED_EXCHANGE_PAYTO)
- ret_obj.update(exchange_url=settings.TALER_SUGGESTED_EXCHANGE)
- else:
- exchange_accno = get_acct_from_payto(exchange_payto)
+ return JsonResponse(dict(hint="exchange_payto_uri missig")
+ exchange_accno = get_acct_from_payto(exchange_payto)
try:
exchange_bankaccount =
BankAccount.objects.get(account_no=exchange_accno)
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: remove TALER_SUGGESTED_EXCHANGE_PAYTO,
gnunet <=