Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad request - parameter error #29

Open
waqasasif9292 opened this issue Apr 24, 2017 · 6 comments
Open

Bad request - parameter error #29

waqasasif9292 opened this issue Apr 24, 2017 · 6 comments

Comments

@waqasasif9292
Copy link

waqasasif9292 commented Apr 24, 2017

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" => '[email protected]',

                    "phoneNumber" => '555-555-5555'

                ),

                "shippingAddr" => array(

                    "name" => 'Testing Tester',

                    "addrLine1" => '123 Test St',

                    "city" => 'Columbus',

                    "state" => 'OH',

                    "zipCode" => '43123',

                    "country" => 'USA',

                    "email" => '[email protected]',

                    "phoneNumber" => '555-555-5555'

                )

            )));
@jordymeow
Copy link

Did you find anything? I am having the same issue.

@waqasasif9292
Copy link
Author

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

@jordymeow
Copy link

Actually, I am having this issue but not using the Sandbox API but in production.

@waqasasif9292
Copy link
Author

provide me your payload

@maronaquillo
Copy link

I'm still having this issue. Sandbox is working but not in Live or in Demo mode.

@asifaliNixaam
Copy link

how acount activated in 2checkout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants