summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-12 21:01:40 +0200
committerFlorian Dold <florian@dold.me>2021-08-12 21:01:40 +0200
commit2f945b2aebf3378496c8be3ef48a16253dde3358 (patch)
treef99f0dcac04e0c9032e0f5c28abb920feee9e14b /packages/taler-wallet-core/src
parentdf7767697798e1c2d9d1c8c777577adea7f4b342 (diff)
downloadwallet-core-2f945b2aebf3378496c8be3ef48a16253dde3358.tar.gz
wallet-core-2f945b2aebf3378496c8be3ef48a16253dde3358.tar.bz2
wallet-core-2f945b2aebf3378496c8be3ef48a16253dde3358.zip
merchant test cases
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r--packages/taler-wallet-core/src/headless/NodeHttpLib.ts3
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts7
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
index 1186ea4d6..9655d363f 100644
--- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
+++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
@@ -52,6 +52,8 @@ export class NodeHttpLib implements HttpRequestLibrary {
const method = opt?.method ?? "GET";
let body = opt?.body;
+ logger.trace(`Requesting ${method} ${url}`);
+
const parsedUrl = new URL(url);
if (this.throttlingEnabled && this.throttle.applyThrottle(url)) {
throw OperationFailedError.fromCode(
@@ -79,6 +81,7 @@ export class NodeHttpLib implements HttpRequestLibrary {
transformResponse: (x) => x,
data: body,
timeout,
+ maxRedirects: 0,
});
} catch (e) {
throw OperationFailedError.fromCode(
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts
index 52b9819dd..a07551e82 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -403,6 +403,13 @@ export enum TombstoneTag {
DeleteRefund = "delete-refund",
}
+export async function retryTransactionNow(
+ ws: InternalWalletState,
+ transactionId: string,
+): Promise<void> {
+ const [type, ...rest] = transactionId.split(":");
+}
+
/**
* Immediately retry the underlying operation
* of a transaction.