Viewing 2 replies - 1 through 2 (of 2 total)
  • angstrem

    (@angstrem)

    The reason is that the result of hashCall is a WPError; if you var_dump it you’ll see, that PayPal server returns 403 Forbidden.
    This is very strange. A code that worked perfectly last week and wasn’t modified at all since that time refuses to work now.
    I guess, they have updated something on PayPal side.
    Any ideas of how to resolve the issue?

    angstrem

    (@angstrem)

    UPD:
    the actual reason is that PayPal have recently restricted HTTP versions you can use to access the API. Now it won’t accept HTTP 1.0, only HTTP 1.1.

    In order to be able to use the framework again, go to paypal-framework.php, locate the hashCall method on line 481 and add the following entry to the $params array:
    'httpversion' => '1.1'
    So that your $params array will look like follows:

    $params = array(
    			'body'		=> $this->_prepRequest($args),
    			'sslverify' => apply_filters( 'paypal_framework_sslverify', false ),
    			'timeout' 	=> 30,
                            'httpversion'   => '1.1',
    		);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with this plugin after haschall’ is closed to new replies.