secure input
| ID | 提取时间 | 归属账号 | 状态 | 二维码 / 链接 | 有效期 | 扫码状态 | 0 元试用 | 错误信息 | 操作 |
|---|---|---|---|---|---|---|---|---|---|
| 请输入卡密后查询历史记录。 | |||||||||
POST /api/upi-link/extract
accessToken:必填,ChatGPT accessToken。card:必填,卡密。payment_method_type:固定传 upi。channel:1=本地直连通道,2=转接通道。{
"accessToken": "你的 accessToken",
"card": "你的卡密",
"payment_method_type": "upi",
"channel": 1
}
ok:是否成功。long_url:兼容旧版调用,成功时通常为 UPI 二维码图片链接。upi_qr_url:UPI 二维码图片链接。upi_instructions_url:UPI 支付指引页链接,建议业务侧优先打开这个链接。provider_redirect_url:支付服务商跳转链接,UPI 场景通常等同于 upi_instructions_url。card:卡密公开状态,如剩余次数、状态。stage:失败阶段,方便业务侧分类。error:失败原因摘要。upi_status_id:本次二维码记录 ID,可用于后续查状态。upi_status:二维码状态、二维码有效期、归属账号信息。{
"ok": true,
"long_url": "https://qr.stripe.com/....svg",
"upi_qr_url": "https://qr.stripe.com/....svg",
"upi_instructions_url": "https://payments.stripe.com/upi/instructions/....",
"provider_redirect_url": "https://payments.stripe.com/upi/instructions/....",
"card_charged": true,
"stage": "done",
"upi_status_id": 1,
"card": {
"code": "****",
"remaining": 0,
"status": "active",
"usable": false
},
"upi_status": {
"status": "waiting",
"qr_url": "https://qr.stripe.com/....svg",
"upi_instructions_url": "https://payments.stripe.com/upi/instructions/....",
"qr_expires_at": "2026-06-15 22:01:13",
"qr_remaining_seconds": 284,
"account_label": "Arlen / +13316002782 (JP Saitama)"
}
}
POST /api/trial-check
{
"accessToken": "你的 accessToken",
"payment_method_type": "upi"
}
trial_eligible:是否为 0 元试用。trial_total:Stripe init 返回的 total。trial_status:中文判断结果。payment_method_supported:当前 checkout 是否支持 UPI。{
"ok": true,
"trial_eligible": true,
"trial_total": 0,
"trial_status": "有 0 元试用资格",
"payment_method_supported": true
}
POST /api/card
{ "card": "你的卡密" }