Linksfield Developer
OverviewCube APIsOld version
OverviewCube APIsOld version
  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
      • Get the SIM Cards in use
    • Usage
      • Example Query the traffic usage of a single SIM card
      • 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
      • Order OTA Plan
      • Query the remaing data by MNO side
  • Notification
    • Notification Overview
    • Notification status code
    • 流量使用量API预警
      POST
    • 短信下行回调
      POST
    • 短信上行回调
      POST
    • 短信上行回调(区分文本二进制)
      POST
    • Plan Order Status Change notification (IMSI)
      POST
  • Mall APIs
    • Mall全局说明
    • Mall业务流程
    • Mall签名代码示例
    • APP调用Stripe的SDK示例说明
    • Vshop
      • 卡片登录验证
      • 获取可购套餐商品列表
      • 创建用户订单
      • 查询自动续费记录
      • 关闭自动续费
      • 查询正在使用、未启用订单
      • 获取生效中的自动续费
      • 关闭自动续费
      • 用户下单(第三方支付)
    • Payment
      • 获取stripe单次支付权限
        POST
      • 获取Stripe订阅支付权限
        POST
      • 创建Stripe订阅/自动续费
        POST
      • 支付结果查询
        POST
      • 支付结果确认
        POST
    • Notification
      • 消息推送
  • eSIM QR Mall APIs
    • Introduction
    • Pre - order
    • v1.1/payment/webhook
    • User login
    • My eSIM Detail
    • Pre - order v1.2
  1. Payment

创建Stripe订阅/自动续费

Demo UAT
Demo UAT
POST
/stripeSubDirectly

Request

Header Params
Content-Type
string 
optional
Default:
application/json
Body Params application/json
email
string 
required
付款邮箱
partnerCode
string 
required
渠道编码。此字段不可传空字符串
payAmount
string 
required
支付金额
payCurrency
string 
required
支付货币代码
payId
string 
required
H5传给Stripe的唯一支付id
plan_id
string 
required
领科系统生成的自动订阅ID
pm_id
string 
required
pm_id是在stripe的方法confirmSetupIntent返回结果里获取到的计划值
sign
string 
required
请求签名。此字段不可传空字符串 ,
tradeTime
string 
required
访问时间戳。此字段不可传空字符串
tradeType
string 
required
接口名称。此字段不可传空字符串
version
string 
required
接口版本,本次接口值为:3.0。此字段不可传空字符串
Example
{
    "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"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
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"
}'

Responses

🟢200成功
application/json
Body
customer_id
string 
required
pay_method
string 
required
product_id
string 
required
status
string 
required
sub_id
string 
required
Example
{
    "customer_id": "string",
    "pay_method": "string",
    "product_id": "string",
    "status": "string",
    "sub_id": "string"
}
Modified at 2022-10-04 23:23:51
Previous
获取Stripe订阅支付权限
Next
支付结果查询
Built with