cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Sandbox down?

I have exactly the same issue. Simply [error]=1 and nothing else. However this is only on Windows 10. The exact same code works on my iMac without problem.

 

I've turned off virus checkers and firewalls without any success. The script is obviously not talking to the sandbox.

 

Does anyone else have issues with Windows 10?

scotthpa
Contributor
15 REPLIES 15

Hello @scotthpa

 

Are you still experiencing this problem?  If you found a solution, feel free to share so others can benefit.

 

Richard

RichardH
Administrator Administrator
Administrator

Yes I am. Windows 10 seems to be blocking it somehow. To repeat, exactly the same script works on my iMac running the latest OS X with and without SSL.

 

By the way, in order to make debugging easier, I created a barebones script that fills in test values and, after creating the AIM object, I will those values in and call:     $response = $sale->authorizeOnly();  // where $sale is the AuthorizeNetAIM object.

Hello @scotthpa

 

Can you provide a log of the entire response from the gateway?

 

Richard

Hi Richard,

 

Unfortunately, I can't send the response to you now. I'm at the office and away from the Windows 10 box. Another guy posted the gateway response and, as I said in the first post, it was identical to mine. That is it had only error = 1 and all other fields were empty. I will send that to you this evening if you wish. but it will be identical to the one already posted.

 

Or do you mean another log that I don't know about? I will try to leave earlier today and get whatever information you require to you because I really need to have this solved ASAP.

 

For your information, I am on Central European Time and resident in Switzerland.

 

Regards,

Scott

Hello Richard, are you there?

@scotthpa  Are you using the PHP SDK?  If so, we would suggest turning up the PHP error reporting level error_reporting(E_ALL); as documented here: 

http://php.net/manual/en/function.error-reporting.php

 

Richard

Hi Richard,

 

I did that from the beginning. Not even one little warning or notice.

 

Do you have a test script that I could run?

 

Thanks,

Scott

OK, here is the "response" after the call:

 

AuthorizeNetAIM_Response Object
(
    [_response_array:AuthorizeNetAIM_Response:private] => Array
        (
        )

    [approved] => 
    [declined] => 
    [error] => 1
    [held] => 
    [response_code] => 
    [response_subcode] => 
    [response_reason_code] => 
    [response_reason_text] => 
    [authorization_code] => 
    [avs_response] => 
    [transaction_id] => 
    [invoice_number] => 
    [description] => 
    [amount] => 
    [method] => 
    [transaction_type] => 
    [customer_id] => 
    [first_name] => 
    [last_name] => 
    [company] => 
    [address] => 
    [city] => 
    [state] => 
    [zip_code] => 
    [country] => 
    [phone] => 
    [fax] => 
    [email_address] => 
    [ship_to_first_name] => 
    [ship_to_last_name] => 
    [ship_to_company] => 
    [ship_to_address] => 
    [ship_to_city] => 
    [ship_to_state] => 
    [ship_to_zip_code] => 
    [ship_to_country] => 
    [tax] => 
    [duty] => 
    [freight] => 
    [tax_exempt] => 
    [purchase_order_number] => 
    [md5_hash] => 
    [card_code_response] => 
    [cavv_response] => 
    [account_number] => 
    [card_type] => 
    [split_tender_id] => 
    [requested_amount] => 
    [balance_on_card] => 
    [response] => 
    [error_message] => Error connecting to AuthorizeNet
)

Richard. I've been studying the Authorize.net PHP classes and saw in AuthorizeNetRequest.php:

 

abstract class AuthorizeNetRequest
{
    
    protected $_api_login;
    protected $_transaction_key;
    protected $_post_string;
    public $VERIFY_PEER = true; // Set to false if getting connection errors.

...

 

I then set $VERIFY_PEER=false based on the comment. It then connected and worked. Now the question is, why is it different that on the Mac, and secondly what are the implecations of this being set to false?