I try to get user paypal account info through Connect with PayPal button .Every thing is working fine .User is authenticated and redirected to REDIRECTURI which is a success route .I get a code on success route in query param.But how i would get the user profile with the code in query param ?
You need to complete additional steps of a Connect with PayPal integration, namely:
(6.) Get access token, https://developer.paypal.com/docs/connect-with-paypal/integrate/#sample-request
(8.) Show user profile information, https://developer.paypal.com/docs/api/identity/v1/#userinfo_get