mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 18:31:03 +01:00
add expires_in field to TokenResponse
hard to know when to refresh token without this field
This commit is contained in:
parent
2771e6788b
commit
26351642ed
1
types.go
1
types.go
|
@ -321,6 +321,7 @@ type (
|
||||||
RefreshToken string `json:"refresh_token"`
|
RefreshToken string `json:"refresh_token"`
|
||||||
Token string `json:"access_token"`
|
Token string `json:"access_token"`
|
||||||
Type string `json:"token_type"`
|
Type string `json:"token_type"`
|
||||||
|
ExpiresIn int64 `json:"expires_in"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transaction https://developer.paypal.com/webapps/developer/docs/api/#transaction-object
|
// Transaction https://developer.paypal.com/webapps/developer/docs/api/#transaction-object
|
||||||
|
|
Loading…
Reference in New Issue
Block a user