I can't code, but I used AI to make a plugin for my store that displays all prices in Bitcoin and gets the price data from my own Btcpayserver.

A couple bugs still, but not bad for a couple hours work. https://video.nostr.build/5d90fe8c0142bac8acf2bda59c3e9c8ed0c6cb8d88b9057f3f1514530d793e18.mp4

Reply to this note

Please Login to reply.

Discussion

NOICE

# BTC USD

btc_usd = [from your node]

# Price of the product in USD.

product_usd = 15.00

# Convert to sats

product_sats = (product_usd / btc_usd) * 100000000

# Format price to display with commas at hundreds place and sats units

product_sats_label = format(round(product_sats), ',') + " sats"

If only it was that easy

WTAF 🫡

That’s incredible