Authorization: Bearer ********************
type
is 3
.type
is 2
or 3
.payment
in the response of Get site settings under vas
section.Authorization
header is missing.Authorization
header is missing.{
"product": {
"type": 3,
"sku_id": "ea602ab6-bd1e-40c3-b674-bef18fda7fa9"
},
"quantity": 1,
"email": "",
"provider_id": "8ff2cceb-b4e6-4fa8-a934-04900a2e8699",
"language": "zh-CN"
}
curl --location --request PUT '/vas/payment' \
--header 'Content-Type: application/json' \
--data-raw '{
"product": {
"type": 3,
"sku_id": "ea602ab6-bd1e-40c3-b674-bef18fda7fa9"
},
"quantity": 1,
"email": "",
"provider_id": "8ff2cceb-b4e6-4fa8-a934-04900a2e8699",
"language": "zh-CN"
}'
0
- Success.{
"code": 0,
"data": {
"payment": {
"id": "1XbTb",
"trade_no": "20250612141601003370839825",
"name": "123",
"status": "created",
"qyt": 4,
"price_unit": 100,
"price_id": "CNY",
"price_mark": "¥",
"price_one_unit": 100,
"created_at": "2025-06-12T14:16:02.794208+08:00",
"updated_at": "2025-06-12T14:16:02.794208+08:00",
"product_type": 3
},
"request": {
"payment_needed": true,
"url": "https://checkout.stripe.com/c/pay/cs_test_a1FJraiSgMa6w5V3BZ39lxvgTRjhoV6KEI6jfE9Ws9GuNpI6qVjfnkuyZV#fidkdWxOYHwnPyd1blpxYHZxWjA0SnBcb0JVMGZPVHRMaDZGZk1TXzNqPXZDdU1kMVE8XXZ2TTdmSXNJd0s1aHxiMU98c31ifFRuNFRWX1VuZ2l2MlI1Zkc2NENIQHcwbTZsTEhifTNUZlczNTVhTD1LNmpcSCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl",
"qr_code_preferred": false
}
},
"msg": ""
}