add autopay param
This commit is contained in:
parent
241ead7a03
commit
51e6e0984e
@ -16,7 +16,9 @@ export default function CashuNuts({ token }: { token: string }) {
|
|||||||
async function redeemToken(e: React.MouseEvent<HTMLButtonElement>, token: string) {
|
async function redeemToken(e: React.MouseEvent<HTMLButtonElement>, token: string) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
const lnurl = profile?.lud16 ?? "";
|
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");
|
window.open(url, "_blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user