创建支付意图
开发中
POST
http://ccshis.lsun.net:6699/paymentintent/create
请求参数
Body 参数application/json
pkgName
string
包名
email
string
邮箱
payType
string
支付类型
countryCode
string
国家编码
successUrl
string
必需
clientId
string
必需
示例
{
"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
必需
message
string
响应消息
result
object
必需
clientSecret
string
必需
currency
string
货币类型
price
string
价格
comboName
string
套餐名称
resumeSubscription
string
必需
subscriptionUrl
string
必需
stripPublicKey
string
必需
示例
{
"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