summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/taleruri.ts
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-11-13 12:53:48 +0100
committerms <ms@taler.net>2021-11-13 12:55:15 +0100
commit9692f589c687a2ba39a705ca4238cf123f444c61 (patch)
tree009e873d2ab1fa89c141b8ebb3d4775fdaaad62e /packages/taler-util/src/taleruri.ts
parent50b9f2167cb4acfae2158bc3c7e1f7173064195d (diff)
downloadwallet-core-9692f589c687a2ba39a705ca4238cf123f444c61.tar.gz
wallet-core-9692f589c687a2ba39a705ca4238cf123f444c61.tar.bz2
wallet-core-9692f589c687a2ba39a705ca4238cf123f444c61.zip
Bring euFin-based tests to pass.
Note: timetravel-withdraw is now failing for both pybank and eufin. That is likely due to the wallet not refreshing expired denominations.
Diffstat (limited to 'packages/taler-util/src/taleruri.ts')
-rw-r--r--packages/taler-util/src/taleruri.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-util/src/taleruri.ts b/packages/taler-util/src/taleruri.ts
index 09c70682a..b487c73ae 100644
--- a/packages/taler-util/src/taleruri.ts
+++ b/packages/taler-util/src/taleruri.ts
@@ -57,6 +57,13 @@ export function parseWithdrawUri(s: string): WithdrawUriResult | undefined {
const host = parts[0].toLowerCase();
const pathSegments = parts.slice(1, parts.length - 1);
+ /**
+ * The statement below does not tolerate a slash-ended URI.
+ * This results in (1) the withdrawalId being passed as the
+ * empty string, and (2) the bankIntegrationApi ending with the
+ * actual withdrawal operation ID. That can be fixed by
+ * trimming the parts-list. FIXME
+ */
const withdrawId = parts[parts.length - 1];
const p = [host, ...pathSegments].join("/");