我一直在尝试使用sandbox api,但我无法确定哪个参数导致错误的参数错误。另外,在API方面我没有看到任何关于任何缺失参数的通知等。我们是有效载荷。
$charge = Twocheckout_Charge::auth(array(
"sellerId" => "*********",
"merchantId" => "123",
"token" => $_POST['token'],
"currency" => 'USD',
"lineitems" => array(
"type" => 'product',
"name" => 'Example Product',
"recurrence" => '1 Month',
"duration" => '1 Year',
"price" => '1.00',
"billingAddr" => array(
"name" => 'Testing Tester',
"addrLine1" => '123 Test St',
"city" => 'Columbus',
"state" => 'OH',
"zipCode" => '43123',
"country" => 'USA',
"email" => 'testingtester@2co.com',
"phoneNumber" => '555-555-5555'
),
"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'
)
)));