Skip to content

Commit 23188d3

Browse files
committed
Fix payjoin
1 parent 548621a commit 23188d3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/payjoin/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Import PayjoinURL from the 'payjoin-react-native' package
2-
import { PayjoinURL, UTXO } from 'payjoin-react-native';
2+
import { PayjoinURL } from 'payjoin-react-native';
3+
import { UTXO } from 'silent-payments';
34

45
export const PayJoin = (url: string) => {
56
// Create a PayjoinURL instance
@@ -14,7 +15,7 @@ export const sendPSBT = async (psbt: string) => {
1415
// Send the PSBT to the payjoin server
1516
const response = await fetch('https://payjoin.example.com/payjoin', {
1617
method: 'POST',
17-
headers
18+
Headers
1819
});
1920
return response;
2021
}// Reaceive the response from the payjoin server
@@ -29,5 +30,8 @@ const utxo: UTXO = {
2930
value: 1000000,
3031
script: 'scriptPubKey',
3132
}
33+
34+
// Use the utxo variable
35+
console.log(utxo)
3236
return response;// Export PayJoin and PayjoinURL
3337
export { PayjoinURL };

0 commit comments

Comments
 (0)