流程
创建支付意图
轮询或验证
PENDING → CONFIRMED | EXPIRED | CANCELLED。始终将 webhook
(或此 GET 请求)作为可信来源——绝不要信任浏览器端的状态。
支持的资产
Puffin 支持的所有链上的所有稳定币:Solana、Ethereum、Base、Polygon、BSC、 Arbitrum、Optimism、XDC ——GET /v1/wallets/supported 列出当前完整矩阵。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
从您的服务器创建支付意图,重定向到我们的结账页面
const res = await fetch('https://api.puffinmoney.com/v1/gateway/api/payment-intents', {
method: 'POST',
headers: { 'X-API-Key': process.env.PUFFIN_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
amount: '99.00',
token: 'USDC_BASE',
chain: 'BASE',
successUrl: 'https://yourstore.com/orders/123/thanks',
metadata: { orderId: '123' },
}),
});
const { intent, checkoutUrl } = await res.json();
GET /v1/gateway/api/payment-intents/:id # X-API-Key
PENDING → CONFIRMED | EXPIRED | CANCELLED。始终将 webhook
(或此 GET 请求)作为可信来源——绝不要信任浏览器端的状态。
GET /v1/wallets/supported 列出当前完整矩阵。