we are get "Connection timed out after 10000 milliseconds" error in paypal sdk

ficode
Contributor
Contributor

Hello,
We are using paypal paypal\rest-api-sdk-php for creating \PayPal\Api\Agreement();.But we are get Connection timed out after 10000 milliseconds error for sandbox/production.


we are sending this request for this

PayPal\Api\Agreement Object
(
    [_propMap:PayPal\Common\PayPalModel:private] => Array
        (
            [name] => Double
            [description] => Double plan agreement created for Anuj kumar
            [start_date] => 2018-09-20T10:00:44Z
            [plan] => PayPal\Api\Plan Object
                (
                    [_propMap:PayPal\Common\PayPalModel:private] => Array
                        (
                            [id] => P-2L832240C25124715WZLDQAQ
                        )

                )

            [payer] => PayPal\Api\Payer Object
                (
                    [_propMap:PayPal\Common\PayPalModel:private] => Array
                        (
                            [payment_method] => paypal
                        )
                )
        )
)

But getting this result

PayPal\Exception\PayPalConnectionException Object
(
    [url:PayPal\Exception\PayPalConnectionException:private] => https://api.sandbox.paypal.com/v1/oauth2/token
    [data:PayPal\Exception\PayPalConnectionException:private] =>
    [message:protected] => Connection timed out after 10000 milliseconds
    [string:Exception:private] =>
    [code:protected] => 28
    [file:protected] => D:\xampp\htdocs\Track-R\vendor\Paypal\paypal\rest-api-sdk-php\lib\PayPal\Core\PayPalHttpConnection.php
    [line:protected] => 181
    [trace:Exception:private] => Array

)

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.