Effortless Bitcoin on-chain payments without middlemen.
Project details
FunkPay is a powerful Python library that facilitates seamless Bitcoin on-chain payments. It puts the power in the hands of users with a self-custodial approach that eliminates intermediaries. With features like real-time transaction monitoring and an embeddable widget, it simplifies the process for merchants while ensuring transactions are secure and efficient.
FunkPay is an innovative Python library designed to streamline Bitcoin on-chain payments, enabling a self-custodial experience without reliance on middlemen. Your keys, your coins.
<script> tag, integrate a payment widget seamlessly into any website.FunkPay allows seamless payment processing by monitoring transactions through a user's Bitcoin Core node. It provides immediate feedback on transaction status:
detected — Transaction is visible in the mempool, suitable for initiating user experiences such as unlocks for digital goods.confirmed — Transaction is settled after the required confirmations, ensuring safe delivery of physical goods or activation of services.Getting started requires minimal setup:
from btcfunkpay import PaymentProcessor, load_config
cfg = load_config()
proc = PaymentProcessor(xpub=cfg.xpub, rpc_url=cfg.rpc_url)
inv = proc.create_invoice(amount_sat=50_000, label="order-123")
print(inv.bip21_uri) # Outputs the payment URI
<div id="funkpay" data-server="https://pay.example.com" data-currency="USD"></div>
<script src="https://btcfunk.com/pay/funkpay.js"></script>
Explore FunkPay's live demo to see the process in action. The simplicity and elegance of FunkPay position it as a great choice for developers looking to implement secure and efficient Bitcoin payment solutions swiftly.
Comments
0Start the conversation
Share the first comment.