用 AI 构建加密货币支付。
将一段提示词粘贴到 Cursor、Claude Code、ChatGPT 或 Copilot,即可得到可运行的加密货币结账:在服务端创建账单、验证签名 Webhook,付款直接转发到您自己的钱包。
- 无需 KYC
- 转发到您的钱包
- 每笔付款 1% 起
- 已复制
- 文档已加载
- 未联网?粘贴文档
- AGENTS.md 已提交
- Webhook 签名已验证
粘贴到任意 AI 助手中,每次集成一次即可。
You are integrating Receivify crypto payments into this project.
Read https://receivify.io/llms-full.txt first and follow it exactly.
Rules:
- Use the official SDK for this language if one exists (Node: npm install receivify,
Python: pip install receivify, PHP: composer require receivify/receivify after
composer config repositories.receivify vcs https://github.com/receivify/receivify-php
(from the GitHub repository), Go: go get github.com/receivify/receivify-sdks/go). Otherwise call the REST API.
- Create one invoice per order on the server, with a reference unique to that order,
then redirect the customer to invoice.checkout_url.
- Verify every webhook on the RAW request body with the SDK's verify function, and
mark the order paid only on invoice.paid. Never trust the redirect back.
- Amounts are strings in base units or decimal strings; never use floats for money.
- Read RECEIVIFY_API_KEY and RECEIVIFY_WEBHOOK_SECRET from environment variables.
Never put them in client-side code.提交到仓库根目录,让以后的每次会话都遵循同样的规则。
# Payments: Receivify
- API reference for agents: https://receivify.io/llms-full.txt
- Spec: https://receivify.io/openapi.yaml
- Example projects: https://github.com/receivify/receivify-sdks/tree/main/examples
## Rules
- Create invoices server-side only; never expose RECEIVIFY_API_KEY to the browser.
- One invoice per order; reference = a unique order id, prefixed with the store name.
- Webhook route: read the raw body, verify x-receivify-signature with the SDK,
dedupe by event sequence, set the order paid only on invoice.paid, reply 2xx fast.
- Money is never a float: base-unit strings or decimal strings only.
- Test with Dashboard → Webhooks → Send test, then one small real payment.在任何助手中使用
- Cursor
- Claude Code
- ChatGPT
- GitHub Copilot
- Windsurf
- Gemini
- Codex
从头到尾,机器可读。
下面每个文件都由 API 测试所用的同一份 openapi.yaml 生成。
网站提供的文件
/llms.txt
Receivify
Receivify sends every payment straight to your own wallet, automatically: a hosted crypto payment gateway that never holds your money. 36 coins and tokens on 16 networks. No KYC to start (an email address). Fee 1% per payment, falling with monthly volume to 0.1%, plus the network fee.
Non-custodial crypto payment gateway — invoices, forwarding addresses, payment links and webhooks.
Receivify takes crypto payments for a merchant and forwards them straight to the merchant's own wallet on confirmation. There is no account balance: nothing accumulates, there is no withdrawal to request, and there is no KYC and no identity documents needed to sign up. 36 assets across
/llms-full.txt
Receivify API — v1.0.0
Non-custodial crypto payment gateway — invoices, forwarding addresses, payment links and webhooks.
This document is generated from `openapi.yaml`, the frozen v1 contract, so it describes what the code actually does. It is intended to be sufficient on its own for an agent to build a working integration.
Base URL: `https://receivify.io`
The frozen v1 contract. Four official SDKs and the published docs are generated from THIS file, so it describes what the code actually does, not what it ideally should.
/openapi.yaml
openapi: 3.1.0
info:
title: Receivify API
version: 1.0.0
summary: Non-custodial crypto payment gateway — invoices, forwarding addresses, payment links and webhooks.
description: |-
The frozen v1 contract. Four official SDKs and the published docs are generated from THIS file,
so it describes what the code actually does, not what it ideally should. ## Scopesdks/
Node.js npm install receivify Python pip install receivify PHP composer config repositories.receivify vcs https://github.com/receivify/receivify-php C# dotnet add reference receivify-csharp/src/Receivify/Receivify.csproj Go go get github.com/receivify/receivify-sdks/[email protected] Ruby git clone https://github.com/receivify/receivify-sdks.git Java / Kotlin git clone https://github.com/receivify/receivify-sdks.git Rust cargo add receivify --git https://github.com/receivify/receivify-sdks C++ add_subdirectory(receivify-cpp)
x-receivify-signature
Webhooks
GET `/api/v1/webhooks/endpoints`
**List webhook endpoints** — `listWebhookEndpoints`
Account-level endpoints receive every INVOICE event, in addition to an invoice's own `callback_url`. They deliberately do NOT receive `forward.*` events — those go only to the forward's own `callback_url`.
Auth: `bearerAuth` or `sessionCookie`
Parameters:
examples/
node-express Express nextjs-app-router Next.js (App Router) python-flask Flask python-fastapi FastAPI php-laravel Laravel plain-php Plain PHP dotnet-minimal-api ASP.NET Core minimal API go-net-http net/http ruby-sinatra Sinatra java-spring-boot Spring Boot rust-axum axum
所有 SDK 和示例的源码:GitHub 上的 receivify-sdks · 免代码网店插件
从提示词到第一张已付款账单。
RECEIVIFY_API_KEY=
RECEIVIFY_WEBHOOK_SECRET=import { Receivify } from 'receivify'
const receivify = new Receivify(
process.env.RECEIVIFY_URL,
process.env.RECEIVIFY_API_KEY,
)
export async function POST(req) {
const { orderId } = await req.json()
const invoice = await receivify
.createInvoice({
amount_fiat: '25.00',
currency: 'USD',
asset: 'usdc',
chain: 'base',
reference: `shop-${orderId}`,
})
return Response.json({
url: invoice.checkout_url,
})
}import { SIGNATURE_HEADER } from 'receivify'
import { receivify } from '@/lib/receivify'
export const runtime = 'nodejs' // node:crypto, not the edge runtime
export const dynamic = 'force-dynamic' // never cache a webhook
export async function POST(request) {
const raw = await request.text() // RAW bytes, not request.json()
let event
try {
event = receivify.parseWebhook(raw, request.headers.get(SIGNATURE_HEADER))
} catch {
return new Response('bad signature', { status: 400 })
}
if (event.event === 'invoice.paid') {
await fulfil(event.data.reference)
}
return new Response('ok')
}AI 智能体也能使用的加密货币支付 API。
| 为自己的工作收款 | POST /api/v1/invoices |
|---|---|
| 发送收款链接 | POST /api/v1/payment-links |
| 以任意货币报价 | GET /api/v1/assets |
| 按计划收费 | POST /api/v1/recurring |
可以放心交给智能体
- 资金直接进入您设置的结算地址,而不是智能体。不会有任何资金累积。
- 收款地址的更改可以被暂缓:开启收款保护后,更改需等待验证码才会生效。
- 密钥可在控制台中撤销。为每个智能体分配独立的密钥,随时轮换。
它不能做什么
Receivify 只接收付款,不会花费资金。没有可供智能体提取的余额,也没有从您账户转出资金的端点。需要向他人付款的智能体应使用自己的钱包,也可以像任何其他客户一样,按账单上的地址和金额支付 Receivify 账单。
- get_account
- get_summary
- get_fee_tier
- list_invoices
- get_invoice
- create_invoice
- cancel_invoice
- list_payment_links
- get_payment_link
- create_payment_link
- deactivate_payment_link
- list_supported_coins
- estimate_network_fees
- list_webhook_deliveries
- replay_webhook_delivery
- search_docs
- get_doc
关于用 AI 集成的解答。
Receivify 有 llms.txt 文件吗?
有。/llms.txt 是产品、文档和 SDK 的简短索引,/llms-full.txt 则是以单个 Markdown 文件呈现的完整 v1 API(每个端点、字段、错误码和 Webhook 事件)。两者都由 openapi.yaml 生成,因此始终与 API 的实际行为一致。
AI 智能体可以通过 Receivify 发送或花费加密货币吗?
不可以。Receivify 只接收付款并将其转发到您的钱包;没有可花费的余额,也没有转出资金的端点。需要付款的智能体应使用自己的钱包,也可以像任何客户一样支付 Receivify 账单。
需要 KYC 吗?费用是多少?
无需 KYC:用邮箱注册,付款直接进入您自己的钱包。起步费率为每笔付款 1%,随月交易量自动降至 0.1%,另加网络费用。无开通费,无每月最低消费。