3

I have been trying to work with the sandbox api, but i am unable to determine which parameter is causing the bad parameter error.Also, in the API side i do not see any notification about any missing parameter etc.Below is our payload.

         $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'

            )

        )));
waqas asif
  • 51
  • 5
  • I am also interested in the answer. – TigrouMeow May 13 '17 at 14:54
  • i solve the issue nothing wrong with the code its only the issue of account my sandbox account is not active that causes this issue 2 checkout sandbox processes are not working broken images as well as the process of account activation is also not working it took me more then 2 month to trace this issue – waqas asif May 16 '17 at 11:21

0 Answers0