導入
自分のサイトで暗号資産を受け取る
方法を選ぶ。コピーして、貼るだけ。
3 つの方法
- 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
どこにでも貼る
プロフィール、メッセージ、メール、ボタン、店頭の QR。
リンクを貼る場所
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 で — 確認後に 1 回だけ届きます。
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