mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Fix encoding from base64 to hex
This commit is contained in:
parent
144d2c6ac7
commit
9588161abc
@ -58,9 +58,8 @@ export default async function handler(req, res) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const invoice = response.data.payment_request;
|
const invoice = response.data.payment_request;
|
||||||
const paymentHash = response.data.r_hash;
|
const paymentHash = Buffer.from(response.data.r_hash, 'base64');
|
||||||
const paymentHashHex = paymentHash.toString('hex');
|
const paymentHashHex = paymentHash.toString('hex');
|
||||||
console.log("PAYMENT HASH HEX", paymentHashHex);
|
|
||||||
|
|
||||||
// If this is a zap, publish a zap receipt
|
// If this is a zap, publish a zap receipt
|
||||||
if (zap_request && foundAddress.allowsNostr) {
|
if (zap_request && foundAddress.allowsNostr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user