Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions docs/examples/donation-button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
id: donation-button
title: Donation Button
slug: /examples/donation-button
---

Use the Blink Donation Button widget to accept Bitcoin Lightning donations directly on your website.

It is a frontend-only integration that you can embed with a few lines of HTML and JavaScript.

## Screenshot

<img src="https://raw.githubusercontent.com/blinkbitcoin/donation-button.blink.sv/main/img/meta-standard-1200x630.png" alt="Blink Donation Button generator screenshot" width="900"/>

## Live Generator
Create and customize your widget at:

* [donation-button.blink.sv](https://donation-button.blink.sv/)

## Quick Embed Example

```html
<!-- Blink Pay Button widget -->
<div id="blink-pay-button-container"></div>

<!-- Blink Pay Button script -->
<script src="https://blinkbitcoin.github.io/donation-button.blink.sv/js/blink-pay-button.js"></script>
<script>
BlinkPayButton.init({
username: 'your-blink-username',
containerId: 'blink-pay-button-container',
buttonText: 'Donate Bitcoin',
themeMode: 'light',
defaultAmount: 1000,
supportedCurrencies: [
{ code: 'sats', name: 'sats', isCrypto: true },
{ code: 'USD', name: 'USD', isCrypto: false },
{ code: 'EUR', name: 'EUR', isCrypto: false }
],
debug: false
})
</script>
```

## Typical Setup Flow
* Open the widget generator and enter your Blink username.
* Select theme and supported currencies.
* Copy the generated snippet into your website.
* Publish and start receiving Lightning donations.

## Links
### Source Code
* [github.com/blinkbitcoin/donation-button.blink.sv](https://github.com/blinkbitcoin/donation-button.blink.sv)

### More Reading
* [github.com/blinkbitcoin/donation-button.blink.sv/blob/main/README.md](https://github.com/blinkbitcoin/donation-button.blink.sv/blob/main/README.md)
3 changes: 2 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ const sidebars = {
'examples/atm-integrations',
'examples/btcpayserver-plugin',
'examples/alby-connector',
'examples/lnbits-funding-source'
'examples/lnbits-funding-source',
'examples/donation-button'
]
},
],
Expand Down
Loading