• Forward the user to PayPal to authenGcate. • Exchange the response code for an access token. • Use the access token to collect user data. PayPal Access: Implementa2on Example
fetch profile informaGon for current user $profile_url = sprinW("%s?oauth_token=%s", PROFILE_ENDPOINT, $token-‐>access_token); //fetch profile of current user $profile = run_curl($profile_url); var_dump($profile); ?>