Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

275
Visualizações
Paypal get userinfo from refresh token

I have paypal refresh token stored on my server. and i want to get the user basic info like profile email using that refresh token. but while trying to the get userinfo there are no such profile info.

$refreshToken = 'R23AAGKvPzMhDzJLohQ507s2NBBhP2lIS6m8BplqE_jEJpUGkiyjWEi-NJHC0omAh3n16N0x3_h4keLrANDFNOiLtWIho91Q5tpwqhRAJZJS4pYoOa9Psh4eYTIwdiIjcFVIMcDaaQPq1Ilb1R60w';

$tokenInfo = new OpenIdTokeninfo();
$tokenInfo = $tokenInfo->createFromRefreshToken(array('refresh_token'=> 
$refreshToken), $this->apiContext);
$params = array('access_token' => $tokenInfo->getAccessToken() );
$userInfo  = OpenIdUserinfo::getUserinfo($params, $this->apiContext);
dd($userInfo);

the resulted output is this

OpenIdUserinfo {#319
 -_propMap: array:1 [
 "user_id" => "https://www.paypal.com/webapps/auth/identity/user/Lo-
 Qp2vr2KOQrIz4OOhWaj6XLEOj2TumkUfAArGKvwM"
 ]

I have generated the refreshtoken from the authetication code generated from MOBILE SDK The transaction has to be done for Paypal Future Payment

The reference code used was https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/lipp/GetUserInfo.php

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda