Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在发送 prefill_info 信息以自动填充结帐字段时遇到问题。文档要求在 json 请求中使用 json。
我发送的 json 是 {"name":"value","zip":"value","email":"value"} 但我收到“invalid_request:期望 JSON 用于参数 prefill_info”。
经过多次试验和错误,我实际上传递了原始对象“值”(没有 json 格式或序列化)。
Dim values As New Dictionary(Of String, String) values.Add("name", d.first_name & " " & d.last_name) values.Add("zip", d.zip) values.Add("email", d.email)
现在,就像一个魅力。