exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 2e8d4e802bb1c8f1fcaa3d2a6a8df874b19956be
parent 022fba51d569826a376f517e5ee3302222e7470c
Author: MS <ms@taler.net>
Date:   Mon, 27 Jul 2020 22:25:05 +0200

Drop payto params before preparing the wire transfer.

Diffstat:
Msrc/bank-lib/taler-bank-transfer.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/bank-lib/taler-bank-transfer.c b/src/bank-lib/taler-bank-transfer.c @@ -401,6 +401,7 @@ execute_wire_transfer () struct TALER_WireTransferIdentifierRawP wtid; void *buf; size_t buf_size; + char *params; if (NULL != debit_account) { @@ -435,6 +436,10 @@ execute_wire_transfer () &wtid, sizeof (wtid)); } + params = strchr (credit_account, + (unsigned char) '&'); + if (NULL != params) + params = '\0'; TALER_BANK_prepare_transfer (credit_account, &amount, "http://exchange.example.com/",