paypal / PayPal-NET-SDK

.NET SDK for PayPal's RESTful APIs
https://developer.paypal.com
Other
536 stars 462 forks source link

AccessToken.createdDate is not updated after getting response from AccessTokenRequest #402

Closed kaifeong closed 4 years ago

kaifeong commented 5 years ago

General information

Issue description

PaypalHttpClient class under line 52 as below did not invoke AccessToken constructor which cause the createdDate variable not set to current date and is always minimum date. Which means the token always expired and each invocation / execute will request new token. this.accessToken = accessTokenResponse.Result<AccessToken>();

xjijies commented 4 years ago

Hi @kaifeong , Do u need help on this or shall I close this issue?

kaifeong commented 4 years ago

Hi @kaifeong , Do u need help on this or shall I close this issue?

nope. just highlighting it but didnt expect nobody reply close to a year.