we are get "Connection timed out after 10000 milliseconds" error in paypal sdk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
)
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Using Paypal Smart Buttons for checkout sometimes fails with Debit/ Credit Cards Form in Braintree Client-side Integration (JS, iOS, Android SDKs)
- paypal buttons can't show in PayPal Payments Standard
- Sandbox testing has beaten me !! in Sandbox Environment
- Sandbox account not generating IPNs in Sandbox Environment
- Disputes Webhook does not works on Sandbox (23/04/24) in Sandbox Environment