aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/merchant.ts3
-rw-r--r--src/headless/taler-wallet-cli.ts2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/headless/merchant.ts b/src/headless/merchant.ts
index 1b9630732..5ce50cb53 100644
--- a/src/headless/merchant.ts
+++ b/src/headless/merchant.ts
@@ -89,12 +89,15 @@ export class MerchantBackendConnection {
summary: string,
fulfillmentUrl: string,
): Promise<{ orderId: string }> {
+ const t = Math.floor(new Date().getTime() / 1000) + 15 * 60;
const reqUrl = new URL("order", this.merchantBaseUrl).href;
const orderReq = {
order: {
amount,
summary,
fulfillment_url: fulfillmentUrl,
+ refund_deadline: `/Date(${t})/`,
+ wire_transfer_deadline: `/Date(${t})/`,
},
};
const resp = await axios({
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index 931cac087..71bccadef 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -137,7 +137,7 @@ async function withWallet<T>(
console.error("Operation failed: " + e.message);
console.log("Hint: check pending operations for details.");
} else {
- console.error("caught exception:", e);
+ console.error("caught unhandled exception (bug?):", e);
}
process.exit(1);
} finally {