From 51e6e0984e63a37f8e2f3015a50a1827d7f01597 Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 9 May 2023 16:28:50 +0100 Subject: [PATCH] add autopay param --- packages/app/src/Element/CashuNuts.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app/src/Element/CashuNuts.tsx b/packages/app/src/Element/CashuNuts.tsx index 4fc0cc97..0f2a6130 100644 --- a/packages/app/src/Element/CashuNuts.tsx +++ b/packages/app/src/Element/CashuNuts.tsx @@ -16,7 +16,9 @@ export default function CashuNuts({ token }: { token: string }) { async function redeemToken(e: React.MouseEvent, token: string) { e.stopPropagation(); const lnurl = profile?.lud16 ?? ""; - const url = `https://redeem.cashu.me?token=${encodeURIComponent(token)}&lightning=${encodeURIComponent(lnurl)}`; + const url = `https://redeem.cashu.me?token=${encodeURIComponent(token)}&lightning=${encodeURIComponent( + lnurl + )}&autopay=yes`; window.open(url, "_blank"); }