追踪定位
  1. 订阅模块
追踪定位
  • 国家模块
    • 国家列表
      POST
  • 语言字典模块
    • 支持的语言列表
      POST
  • 短信模板模块
    • 获取短信模版
      POST
  • 信息模块
    • 未读消息提示 -- 5-10s 轮训一次
      POST
    • 消息列表
      POST
  • 记录模块
    • 记录位置信息
      POST
    • 分页获取用户追踪的手机号最新地址
      POST
  • 发送短信和手机号校验
    • 发送短信
      POST
    • 手机号检验
      POST
  • 用户
    • 登录
      POST
    • 用户注册接口
      POST
    • 校验token是否有效并返回套餐信息
      POST
    • 用户支付成功发送登录密码到邮箱
      POST
    • 发送重置密码邮件到邮箱
      POST
    • 邮箱更新
      POST
    • 密码更新
      POST
    • 忘记密码更新
      POST
    • 邮箱校验
      POST
    • 获取试用期价格配置
      POST
  • 订阅模块
    • 创建支付意图
      POST
    • 取消订阅
      POST
  1. 订阅模块

创建支付意图

开发中
POST
http://ccshis.lsun.net:6699/paymentintent/create

请求参数

Body 参数application/json
pkgName
string 
包名
必需
包名,测试、生产环境为com.fmp.web
email
string 
邮箱
必需
邮箱
payType
string 
支付类型
必需
1表示strip支付,2表示paypal支付,3表示payermax支付
countryCode
string 
国家编码
必需
例如:IDR 印尼 PHP 菲律宾
successUrl
string 
必需
支付成功后的跳转链接
clientId
string 
必需
google埋点时用到的clientId和userId
示例
{
    "pkgName": "string",
    "email": "string",
    "payType": "string",
    "countryCode": "string",
    "successUrl": "string",
    "clientId": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://ccshis.lsun.net:6699/paymentintent/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pkgName": "string",
    "email": "string",
    "payType": "string",
    "countryCode": "string",
    "successUrl": "string",
    "clientId": "string"
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
响应码,2000表示成功,不等于2000表示失败
message
string 
响应消息
必需
result
object 
必需
clientSecret
string 
必需
strip的客户端密钥
currency
string 
货币类型
必需
price
string 
价格
必需
comboName
string 
套餐名称
必需
resumeSubscription
string 
必需
是否恢复订阅,1表示是,0表示否
subscriptionUrl
string 
必需
paypal订阅链接
stripPublicKey
string 
必需
strip支付的publickey
示例
{
    "code": 2000,
    "message": "ok",
    "result": {
        "clientSecret": "pi_3NdQf9BVlShiHerH0VmhVAlp_secret_oU5eEOKuuKp240CfdQcOB80BW",
        "currency": "usd",
        "price": "0.89",
        "comboName": "1-Day-Plan",
        "resumeSubscription": "0"
    }
}
修改于 2023-10-16 09:19:16
上一页
获取试用期价格配置
下一页
取消订阅
Built with