2Checkout Bad request - 参数错误

时间:2017-04-24 17:09:27

标签: 2checkout

我一直在尝试使用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'

            )

        )));

0 个答案:

没有答案