diff options
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({ |