diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-08 19:55:18 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-08 19:55:18 +0200 |
commit | 4f846eab966e2366c860c8708d3c47c18397d346 (patch) | |
tree | 935d88530cc09a9c1fe935c7205ede29356bbbce /src/wire | |
parent | 8800110b72d539e6e9a57ca9e6a66a9ad427f528 (diff) |
fix #5756, also change sepa->iban as per payto:// spec
Diffstat (limited to 'src/wire')
-rw-r--r-- | src/wire/Makefile.am | 1 | ||||
-rw-r--r-- | src/wire/wire_helper.c | 10 |
2 files changed, 6 insertions, 5 deletions
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; } |