gpt4 book ai didi

php - 2CheckOut-错误 : Bad Request - Parameter error

转载 作者:行者123 更新时间:2023-12-04 04:07:53 24 4
gpt4 key购买 nike

向 TwoCheckOut 请求数据:

Request Data

来自 TwoCheckOut 的响应。

{
"error": "Bad request - parameter error"
}

这是代码

     $charge = Twocheckout_Charge::auth(array(
"sellerId" => '*HIDDEN*',
"merchantOrderId" => $orderID,
"token" => $token,
"currency" => $currency,
"total" => $itemPrice,
"billingAddr" => array(
"name" => $name,
"addrLine1" => $addrLine1,
"city" => $city,
"state" => $state,
"zipCode" => $zipCode,
"country" => $country,
"email" => $email,
"phoneNumber" => $phoneNumber
),
"shippingAddr" => array(
"name" => 'Testing Tester',
"addrLine1" => '123 Test St',
"city" => 'Columbus',
"state" => 'OH',
"zipCode" => '43123',
"country" => 'USA',
"email" => 'testingtester@2co.com',
"phoneNumber" => '555-555-5555'
),
"demo" => true

));

如果我发送错误的“ token ” key ,我会得到未经身份验证

编辑:

我的 View JS 代码 front end code

欢迎提出您的建议

最佳答案

"demo" => 'Y'

Demo key should be 'Y' not true is the issue here

关于php - 2CheckOut-错误 : Bad Request - Parameter error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62220427/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com