【发布时间】:2020-10-29 16:04:04
【问题描述】:
我想创建一个条带订单,但是当我将运费添加到数组时,它给了我以下错误:
响应正文
{
"error": {
"message": "Items of type `shipping` are not supported at order creation.",
"param": "items[2]",
"type": "invalid_request_error"
}
}
请求 POST 正文
{
"items": {
"0": {
"type": "sku",
"parent": "sku_11111111111",
"quantity": "1"
},
"1": {
"type": "discount",
"amount": "0",
"currency": "GBP",
"description": "No discount"
},
"2": {
"type": "shipping",
"amount": "30",
"currency": "gbp",
"description": "Shipping"
}
},
"currency": "gbp",
"shipping": {
"name": "name lastname",
"address": {
"line1": "addres",
"city": "city",
"state": "pr",
"country": "AM",
"postal_code": "123"
}
},
"email": "test@test.test",
"metadata": {
"payment_method": "visa"
}
}
我也找到了this,但我不明白您的端点响应部分在那里
【问题讨论】:
标签: php callback stripe-payments