Skip to content

Guides

Donations

A page that takes donations in crypto, with a goal and the latest donors. For creators, open source and streams.

View as Markdown

A donation page is a payment link whose donor names the amount: pay.perly.io/l/your-slug. Every donation is its own invoice and its own address, and the money lands in your wallet. Perly Pay never holds it.

Make one

  1. 1

    New donation page

    Dashboard → Donations → New donation page. Give it a title and up to four amounts; donors can still type their own, down to your minimum.

  2. 2

    Choose what it shows

    A goal with what's raised toward it, a name and a message from the donor, and one to three of the latest donors under the button.

  3. 3

    Share it

    Copy the link or print its QR code. Shared in a chat or a post, the link shows a card with the goal and the latest donors.

What donors see

  1. Your name, the goal and what's raised.
  2. The amounts, and Other for their own.
  3. Optionally, their name and a message, and whether the page may show them.
  4. Our checkout: a coin, a QR code, Pay from wallet.
  5. Your thank-you over their receipt.
A name or message appears on the page only when the donor ticks Show and you haven't hidden it. Hide any of them in Donations → Latest donations.

On your site and in a README

The donation page is a payment link, so pay.js opens it over your page (allow your site first: Settings → Checkout → Sites that may embed the checkout).

index.html
<script src="https://pay.perly.io/pay/v1.391a0b56606a.js"
  integrity="sha384-ORoLVmBqosO3dKNnS92D85oIiAdoVMIkYtbXbn0njZ/6FDUhJQbS9JXgvGx5psqk"
  crossorigin="anonymous" defer></script>

<button data-perly-pay="your-slug">Donate</button>

For a README, the badge links to the page:

README.md
[![Donate](https://pay.perly.io/badge/your-slug.svg)](https://pay.perly.io/l/your-slug)

On a stream

In OBS, add a Browser source with pay.perly.io/l/your-slug/stream, about 480 wide. It shows the goal, a QR code to the page and the latest donors, live, on a transparent background; everything in it grows with the source. Dashboard → Donations → Edit has the address to copy.

From the API

Create a pay_what_you_want price, then a payment link with donation. Amounts are minor units of the price's currency.

js
const price = await pay.prices.create({ product: "prod_…", model: "pay_what_you_want", currency: "USD", custom_amount: { minimum: 300 } });
const link = await pay.paymentLinks.create({
  price: price.id,
  donation: { amounts: [500, 1000, 2500], goal: 300000, latest_donors: 3, thanks_note: "Thank you!" },
});

Every paid donation sends invoice.paid like any payment. The page's live figures are at /l/{slug}/live: raised, how many, and the latest donors as the page shows them.

What it costs

The same as any payment: pay as you go. Nothing is taken from a donation.