diff --git a/wallets/server/protocols/phoenixd.js b/wallets/server/protocols/phoenixd.js index a56cda3b..1245586d 100644 --- a/wallets/server/protocols/phoenixd.js +++ b/wallets/server/protocols/phoenixd.js @@ -20,6 +20,7 @@ export async function createInvoice ( const body = new URLSearchParams() body.append('description', description) body.append('amountSat', msatsToSats(msats)) + body.append('expirySeconds', Math.ceil(expiry / 1000)) const hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '') const agent = getAgent({ hostname })