【发布时间】:2022-10-14 23:14:05
【问题描述】:
\Stripe\Invoice::update($invoice_id, [
'custom_fields' => [
[
'name' => 'Company',
'value' => 'Apple'
]
]
]);
我在 custom_fields 上遇到了错误。我没有在 Stripe 文档中找到如何使用 custom_fields 的示例,但在 JSON 中应该是 custom_fields: [{name:'Company',value:'Apple'}] 但现在是 custom_fields: {0:{name:'Company',value:'Apple'}}
【问题讨论】:
标签: php stripe-payments