mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Fix for encoding
This commit is contained in:
parent
ff4b9d8ac9
commit
baac9ee21c
@ -21,13 +21,9 @@ export default async function handler(req, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert hex payment hash to base64
|
|
||||||
const paymentHashBuffer = Buffer.from(slug, 'hex');
|
|
||||||
const paymentHashBase64 = paymentHashBuffer.toString('base64');
|
|
||||||
|
|
||||||
// Call LND to check payment status
|
// Call LND to check payment status
|
||||||
const response = await axios.get(
|
const response = await axios.get(
|
||||||
`https://${foundAddress.lndHost}/v1/invoice/${paymentHashBase64}`,
|
`https://${foundAddress.lndHost}/v1/invoice/${slug}`,
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
'Grpc-Metadata-macaroon': foundAddress.invoiceMacaroon,
|
'Grpc-Metadata-macaroon': foundAddress.invoiceMacaroon,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user