Ejemplo n.º 1
0
 protected function prepareAccessTokenResult(array $result)
 {
     // Square uses a ISO 8601 timestamp to represent the expiration date.
     // http://docs.connect.squareup.com/#post-token
     $result['expires_in'] = strtotime($result['expires_at']) - time();
     return parent::prepareAccessTokenResult($result);
 }
Ejemplo n.º 2
0
 protected function prepareAccessTokenResult(array $result)
 {
     $result['expires_in'] = strtotime($result['expires_at']) - time();
     return parent::prepareAccessTokenResult($result);
 }