在您的网站上接受稳定币支付
从无需代码的支付链接,到使用 API 构建的专属支付界面。选择您的收款方式,以及支付在您网站上的呈现方式。

把支付放在 网站最合适的位置。
将客户引导至我们的收银台、通过按钮打开收银台、在您的页面内展示,或使用 API 自行构建。下面每种方式都可以试用:所有演示都在本页面运行,使用无法实际支付的示例数据。
托管收银台
网站无需代码
跳转到由我们托管的收银台页面。每个链接有四款现成设计可选,且其他网站无法嵌入该页面。
<!-- Send your customer to the hosted checkout. Its design (classic, split, ticket or card) is set on the link, in the dashboard or with the API (checkoutTheme). --><a href="https://payments.cosmospay.lat/cmh9a1q7r0000l208x9k4d1pz"> Pay with Cosmos Pay</a>支付链接和二维码
无需代码
在控制台中创建链接,通过聊天、邮件或打印的二维码分享。
您的链接
payments.cosmospay.lat/cmh9a1q7r0000l208x9k4d1pz支付请求
测试网络:不涉及真实资金
25.00 USDC
金额由您在钱包中自行选择。
订单 #1001
等待支付

API 和 SDK
您自己的界面
从您的服务器创建支付意图,自行设计支付界面,并通过签名 Webhook 接收结果。
选择金额并发送请求:控制台会显示 API 的响应,以及您的服务器收到的 Webhook。
任何内容都不会离开此页面:数据结构来自 API,数值均为示例。
import { Client } from "@cosmosapp/pay_sdk"; const client = new Client({ apiKey: process.env.COSMOS_PAY_API_KEY });const intent = await client.paymentIntents.createPay({ destination: "G…YOUR_ACCOUNT", amount: "25",});// send your customer to the hosted checkoutconst checkoutUrl = "https://payments.cosmospay.lat/" + intent.id;电商插件
即将推出
WooCommerce 和 Shopify 插件,无需编写代码即可在您的店铺中收款。
无论选择哪种方式,都请在服务器端通过 Webhook 或 API 确认支付。
只需 几行代码。
在服务器上创建支付,分享收银台链接,支付完成后由 Webhook 通知您。
- 提供 OpenAPI 文档的 REST API
- TypeScript SDK:@cosmosapp/pay_sdk
- 使用 HMAC-SHA256 签名的 Webhook
- 测试密钥(dv_)和正式密钥(prod_)
curl https://api.cosmospay.lat/cosmos-api/v1/payment-intents/pay \ -H "Authorization: Bearer $COSMOS_PAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "chain": "stellar", "destination": "G…YOUR_ACCOUNT", "amount": "25", "assetCode": "USDC", "assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN", "msg": "Order #1001", "checkoutTheme": "ticket" }'import { Client } from "@cosmosapp/pay_sdk"; const client = new Client({ apiKey: process.env.COSMOS_PAY_API_KEY });const intent = await client.paymentIntents.createPay({ destination: "G…YOUR_ACCOUNT", amount: "25",});// send your customer to the hosted checkoutconst checkoutUrl = "https://payments.cosmospay.lat/" + intent.id;{ "id": "evt_01JB…", "type": "PAYMENT_INTENT_SUCCEEDED", "createdAt": "2026-10-24T22:36:56.000Z", "data": { "id": "cmh9a1…", "status": "SUCCEEDED", "amount": "25", "txHash": "6864…2e54" }}# 响应中的 id 即为链接:https://payments.cosmospay.lat/<id>
三种方式 开始收款。
今天就从一个链接开始,需要时再接入 API。每种方式都使用同一套收银台、控制台和 Webhook。