Linksfield Developer
OverviewCube APIs旧版本API
OverviewCube APIs旧版本API
  1. Payment
  • CSSS APIs
    • 全局说明/Overview
    • 国际化/ Internationalization
    • 状态码/Status code
    • 签名代码示例 / Sign code Example
    • SIM
      • 批量获取拥有的设备信息/Get all SIM cards info
      • 查询单一设备实时信息/Get real-time info about one SIM card
      • 同步使用中SIM卡信息/Get the SIM Cards in use
    • Usage
      • 查询单张SIM卡流量使用情况/ Example Query the traffic usage of a single SIM card
      • 批量查询SIM卡流量接口 /Batch querying SIM card usage
      • 查询单日流量使用情况 / Example Query the daily usage
      • 批量查询指定月份的流量使用情况/ Batch querying the usage in a specified month
    • Plan
      • 同步资费套餐 / Get data plan
      • 订购流量套餐/ Order data plan
      • 批量订购套餐/ Bulk order package
      • 续订流量套餐/ Renew your data plan
      • 查询套餐订单信息 / Query the package order information
      • 开通/启用流量套餐订单 / To enable the order
      • 取消流量套餐订单/ Cancel an unenabled package order
      • 提前结束设备套餐订单/ End package orders early
      • [不推荐]停机/暂停流量套餐订单
      • [不推荐]复机/重新启动流量套餐订单
      • 【不推荐】分页批量(查询)同步设备可订购套餐
    • SMS
      • 发送短信/ send SMS
    • Customized
      • OTA日套餐下单/Order OTA Plan
      • 运营商侧剩余流量查询/Query the remaing data by MNO side
  • Notification
    • Notification全局说明
    • Notification状态码
    • 流量使用量API预警
      POST
    • 短信下行回调
      POST
    • 短信上行回调
      POST
    • 短信上行回调(区分文本二进制)
      POST
    • 订单状态变更回调(IMSI)
      POST
  • Mall APIs
    • Mall全局说明
    • Mall业务流程
    • Mall签名代码示例
    • APP调用Stripe的SDK示例说明
    • Vshop
      • 卡片登录验证
      • 获取可购套餐商品列表
      • 创建用户订单
      • 查询正在使用、未启用订单
      • 获取生效中的自动续费
      • 关闭自动续费
      • 用户下单(第三方支付)
    • Payment
      • 获取stripe单次支付权限
        POST
      • 获取Stripe订阅支付权限
        POST
      • 创建Stripe订阅/自动续费
        POST
      • 支付结果查询
        POST
    • Notification
      • 消息推送
  • eSIM QR Mall APIs
    • Introduction
    • Pre - order
    • webhook
    • 用户登录
    • My eSIM Detail
  1. Payment

创建Stripe订阅/自动续费

Cube UAT
Cube UAT
POST
/stripeSubDirectly

请求参数

Header 参数
Content-Type
string 
可选
默认值:
application/json
Body 参数application/json
email
string 
付款邮箱
可选
partnerCode
string 
必需
渠道编码。此字段不可传空字符串
payAmount
string 
支付金额,单位元
必需
payCurrency
string 
必需
支付货币代码,3位小写
payId
string 
必需
H5传给Stripe的唯一支付id
plan_id
string 
可选
领科系统生成的自动订阅ID
pm_id
string 
必需
pm_id是在stripe的方法confirmSetupIntent返回结果里获取到的计划值
sign
string 
必需
请求签名。此字段不可传空字符串 ,
tradeTime
string 
必需
访问时间戳。此字段不可传空字符串
tradeType
string 
必需
接口名称。此字段不可传空字符串
version
string 
必需
接口版本,本次接口值为:3.0。此字段不可传空字符串
示例
{
    "email": "421516116@qq.com",
    "partnerCode": "P000818",
    "payAmount": "19.99",
    "payCurrency": "usd",
    "payId": "P0002702020110214193780630",
    "plan_id": "string",
    "pm_id": "pm_1GnMUDLnVNBddzslXw7xuoe6",
    "sign": "b2a9e697bdff66049803d62ffeffccaf",
    "tradeTime": "20181031256548",
    "tradeType": "payPalPay",
    "version": "3.0"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/stripeSubDirectly' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "421516116@qq.com",
    "partnerCode": "P000818",
    "payAmount": "19.99",
    "payCurrency": "usd",
    "payId": "P0002702020110214193780630",
    "plan_id": "string",
    "pm_id": "pm_1GnMUDLnVNBddzslXw7xuoe6",
    "sign": "b2a9e697bdff66049803d62ffeffccaf",
    "tradeTime": "20181031256548",
    "tradeType": "payPalPay",
    "version": "3.0"
}'

返回响应

🟢200成功
application/json
Body
customer_id
string 
必需
pay_method
string 
必需
product_id
string 
必需
status
string 
必需
sub_id
string 
必需
示例
{
    "customer_id": "string",
    "pay_method": "string",
    "product_id": "string",
    "status": "string",
    "sub_id": "string"
}
🟢200success
修改于 2024-03-13 07:28:11
上一页
获取Stripe订阅支付权限
下一页
支付结果查询
Built with