Xây dựng thanh toán crypto với AI.
Dán một prompt vào Cursor, Claude Code, ChatGPT hoặc Copilot và có ngay trang thanh toán crypto chạy được: hóa đơn được tạo phía server, webhook có chữ ký được xác minh, thanh toán được chuyển tiếp thẳng về ví của chính bạn.
- Không KYC
- Chuyển tiếp về ví của bạn
- Từ 1% mỗi khoản thanh toán
- Đã sao chép
- Đã tải tài liệu
- Tắt duyệt web? Dán tài liệu
- AGENTS.md committed
- Đã xác minh chữ ký webhook
Dán vào bất kỳ trợ lý AI nào, mỗi lần tích hợp một lần.
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.Commit vào thư mục gốc của repository để mọi phiên sau này đều theo cùng quy tắc.
# 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.Dùng trong bất kỳ trợ lý nào
- Cursor
- Claude Code
- ChatGPT
- GitHub Copilot
- Windsurf
- Gemini
- Codex
Máy đọc được, từ đầu đến cuối.
Mọi tệp dưới đây được tạo từ cùng openapi.yaml mà API dùng để kiểm thử.
Những gì trang cung cấp
/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
Mã nguồn của mọi SDK và ví dụ: receivify-sdks trên GitHub · plugin cửa hàng không cần code
Từ prompt đến hóa đơn được thanh toán đầu tiên.
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')
}API thanh toán crypto mà agent của bạn có thể dùng.
| Nhận tiền cho công việc của chính nó | POST /api/v1/invoices |
|---|---|
| Gửi link thanh toán | POST /api/v1/payment-links |
| Báo giá bằng mọi loại tiền | GET /api/v1/assets |
| Thu tiền theo lịch | POST /api/v1/recurring |
An toàn để giao cho agent
- Tiền đi thẳng về địa chỉ nhận tiền bạn đã đặt, không phải về agent. Không có gì bị tích lũy.
- Thay đổi địa chỉ nhận tiền có thể được giữ lại: khi bật bảo vệ nhận tiền, thay đổi sẽ chờ mã trước khi có hiệu lực.
- Key có thể thu hồi từ bảng điều khiển. Hãy cấp cho mỗi agent một key riêng và xoay vòng thoải mái.
Những gì nó không làm
Receivify nhận thanh toán; nó không chi tiêu. Không có số dư nào để agent rút và không có endpoint nào gửi tiền từ tài khoản của bạn. Agent cần trả tiền cho ai đó sẽ dùng ví riêng của nó, và có thể thanh toán hóa đơn Receivify như bất kỳ khách hàng nào khác, theo địa chỉ và số tiền trên hóa đơn.
- 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
Giải đáp về xây dựng với AI.
Receivify có file llms.txt không?
Có. /llms.txt là chỉ mục ngắn gọn về sản phẩm, tài liệu và SDK, còn /llms-full.txt là toàn bộ API v1 (mọi endpoint, trường, mã lỗi và sự kiện webhook) trong một file markdown. Cả hai đều được sinh từ openapi.yaml, nên luôn khớp với những gì API thực sự làm.
AI agent có thể gửi hoặc chi tiêu crypto qua Receivify không?
Không. Receivify chỉ nhận thanh toán và chuyển tiếp về ví của bạn; không có số dư để chi tiêu và không có endpoint nào gửi tiền. Agent cần trả tiền sẽ dùng ví riêng của nó, và có thể thanh toán hóa đơn Receivify như bất kỳ khách hàng nào.
Có KYC không, và chi phí là bao nhiêu?
Không có KYC: bạn đăng ký bằng email và tiền đi thẳng về ví của chính bạn. Phí là 1% mỗi khoản thanh toán khi bắt đầu, tự động giảm theo khối lượng hằng tháng xuống còn 0.1%, cộng phí mạng. Không phí thiết lập và không mức tối thiểu hằng tháng.