【发布时间】:2020-09-24 23:03:06
【问题描述】:
向 TwoCheckOut 请求数据:
来自 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
));
如果我发送错误的“令牌”密钥,我会得到未经身份验证。
编辑:
欢迎提出您的建议
【问题讨论】:
-
看看那些答案,可能对你有帮助stackoverflow.com/questions/25227500/…
-
所有答案都已经很老了,2checkout 最近更新了他们的库并重新设计了他们的流程
标签: php laravel payment-gateway 2checkout