From 4f846eab966e2366c860c8708d3c47c18397d346 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 8 Jun 2019 19:55:18 +0200 Subject: fix #5756, also change sepa->iban as per payto:// spec --- src/wire/Makefile.am | 1 + src/wire/wire_helper.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/wire') diff --git a/src/wire/Makefile.am b/src/wire/Makefile.am index 9fcf877f9..6bf38aa2a 100644 --- a/src/wire/Makefile.am +++ b/src/wire/Makefile.am @@ -12,6 +12,7 @@ lib_LTLIBRARIES = \ libtalerwire.la libtalerwire_la_SOURCES = \ + payto.c \ wire.c \ wire_helper.c libtalerwire_la_LIBADD = \ diff --git a/src/wire/wire_helper.c b/src/wire/wire_helper.c index 13e9bd79c..0ce8d599a 100644 --- a/src/wire/wire_helper.c +++ b/src/wire/wire_helper.c @@ -39,7 +39,7 @@ struct ConversionTable { /** - * Wire method (e.g. 'sepa', 'x-taler-bank', ..) + * Wire method (e.g. 'iban', 'x-taler-bank', ..) */ const char *method; @@ -86,17 +86,17 @@ const char * TALER_WIRE_get_plugin_from_method (const char *method) { static const struct ConversionTable ct[] = { - {"x-taler-bank", "taler_bank"}, - {"sepa", "ebics"}, + {"x-taler-bank", "taler_bank"}, + {"iban", "ebics"}, {NULL, NULL} }; - + for (unsigned int i=0; NULL != ct[i].method; i++) { if (0 == strcmp (method, - ct[i].method)) + ct[i].method)) return ct[i].plugin_name; } -- cgit v1.2.3