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 browser, no cookie --> #34

Open
mehedimi opened this issue Dec 13, 2018 · 3 comments
Open

<!-- Bad browser, no cookie --> #34

mehedimi opened this issue Dec 13, 2018 · 3 comments

Comments

@mehedimi
Copy link

Class Twocheckout_Api_Requester mathod doCall returns
this response .
"""

404 Not Found

@craigchristenson
Copy link
Member

Thank you for reporting this. Please let us know which api method are you calling when getting this error.

@mehedimi
Copy link
Author

mehedimi commented Dec 13, 2018

When i want to create sale then error occurred.
I use this lines of code

Twocheckout::privateKey({MY PRIVET KEY});
Twocheckout::sellerId(MY SELLER ID);
Twocheckout::sandbox(true);

try {
    $charge = Twocheckout_Charge::auth(array(
        "merchantOrderId" => "123",
        "token" => {MY REQUEST TOKEN},
        "currency" => 'USD',
        "total" => '10.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'
        )
    ), 'array');
    if ($charge['response']['responseCode'] == 'APPROVED') {
        echo "Thanks for your Order!";
    }
} catch (Twocheckout_Error $e) {
    $e->getMessage();
}

@cuzboo
Copy link

cuzboo commented Oct 24, 2019

Any updates on this one?

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

3 participants