diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-05 22:17:01 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-05 22:17:01 +0100 |
commit | 8115ac660cd9d12ef69ca80fc2e4cf8eec6b1ba1 (patch) | |
tree | 1190c1e16fb620d7812b1f26b03f20ed9615e795 /src/headless/merchant.ts | |
parent | f67d7f54f9d0fed97446898942e3dfee67ee2985 (diff) | |
download | wallet-core-8115ac660cd9d12ef69ca80fc2e4cf8eec6b1ba1.tar.xz |
fix refunds
Diffstat (limited to 'src/headless/merchant.ts')
-rw-r--r-- | src/headless/merchant.ts | 3 |
1 files changed, 3 insertions, 0 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({ |