接入
在你的网站上收加密货币
选一种方式。复制、粘贴,完成。
三种方式
- 1
创建商品
New product
Name
1,000 API creditsPrice
24.00USD1,000 API credits$24.00Active - 2
复制链接
Linkpay.perly.io/l/your-linkOr print the QR.
Link copied - 3
贴到任何地方
个人简介、消息、邮件、按钮、收银台二维码。
链接贴到哪里
Instagram, TikTok 编辑主页 → 链接 → 粘贴 Telegram, WhatsApp 粘贴到消息或频道帖子中 邮件 粘贴到正文中,或设为文字链接 Wix 按钮 → 链接 → 网址 → 粘贴 Tilda 按钮区块 → 内容 → 按钮链接 → 粘贴 Webflow 按钮 → 设置 → Link → URL → 粘贴 WordPress “按钮”区块 → 链接 → 粘贴 Shopify 自定义主题 → 按钮 → 链接 → 粘贴 Notion 选中文字 → Link → 粘贴 在建站工具里:添加按钮,粘贴链接。
kestrel.testAI models, paid by the credit.
pay.perly.io/l/your-link
Bio ChatHow do I pay?pay.perly.io/l/your-linkMessage Your orderPay here →Email Buy nowLink
pay.perly.io/l/your-link✓ Done
Site builder - 4
买家付款
1,000 API credits
$24.00
BTCUSDCUSDTUSDC · Base24.000000 USDC
Paid
- 1
获取测试密钥
密钥只留在服务器上,绝不放进页面。
API keys
Local dev
sk_test_…
Copy it now. It is shown once.
sk_test_•••••••••••••••• - 2
安装 SDK
npm i perly-pay~/shop $ npm i perly-pay
added 1 package in 1s
0 dependencies · TypeScript types included
ready
- 3
创建账单并把买家引导过去
import { PerlyPay } from "perly-pay"; const pay = new PerlyPay(process.env.PERLY_PAY_SECRET_KEY); // sk_test_… app.post("/buy", async (req, res) => { const invoice = await pay.invoices.create({ line_items: [{ price: "price_…" }], return_url: "https://yourshop.com/thanks", metadata: { order: "1042" }, }); res.redirect(303, invoice.url); // https://pay.perly.io/i/<uuid> }); - 4
通过 Webhook 得知付款
校验原始字节。在 invoice.fulfilled 时发货 — 它只来一次,且在核对之后。
app.post("/webhooks/perly", express.raw({ type: "application/json" }), (req, res) => { const event = pay.webhooks.verify( req.body, // the raw bytes, not parsed JSON req.header("Perly-Signature"), process.env.PERLY_PAY_WEBHOOK_SECRET, // whsec_… ); // throws if forged, or older than 5 minutes if (event.type === "invoice.fulfilled") { ship(event.data.object.metadata.order); // once, after screening } res.sendStatus(204); });Webhooks
Endpoint URL
yourshop.com/webhooks/perlyhttps://yourshop.com/webhooks/perlyOnwhsec_•••• · shown once
invoice.paid200deliveredinvoice.fulfilled200delivered - 5
依次发生什么
先是 invoice.paid;invoice.fulfilled 表示可以发货了。
买家你的网站Perly Pay网络你的服务器购买
POST /invoices
invoice.url
跳转到 /i/…
付款到你的地址
已发现,已确认
invoice.paid · invoice.fulfilled
收据
发货
先测试,再上线
- 1
测试模式
Kestrel AITestTest networks. Nothing real moves. - 2
Simulate payment
Test mode · No real money moves.
USDC · Base SepoliaPaid24.000000
Short or over
- 3
Webhook 和收据
Webhooks
invoice.paid200deliveredinvoice.fulfilled200deliveredreceipt.created200deliveredReceipt
TEST-KS-2026-000124
1,000 API credits$24.00PDF - 4
上线:核对钱包
在钱包自己的屏幕上核对第一个地址。
Wallets · live · first address
bc1q9h7…x7f2
Verify address
bc1q9h7…x7f2
Live