mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +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;
|
||||
}
|
||||
|
||||
// Convert hex payment hash to base64
|
||||
const paymentHashBuffer = Buffer.from(slug, 'hex');
|
||||
const paymentHashBase64 = paymentHashBuffer.toString('base64');
|
||||
|
||||
// Call LND to check payment status
|
||||
const response = await axios.get(
|
||||
`https://${foundAddress.lndHost}/v1/invoice/${paymentHashBase64}`,
|
||||
`https://${foundAddress.lndHost}/v1/invoice/${slug}`,
|
||||
{
|
||||
headers: {
|
||||
'Grpc-Metadata-macaroon': foundAddress.invoiceMacaroon,
|
||||
|
Loading…
x
Reference in New Issue
Block a user