PayPal would redirect the user to the redirect_uri mentioned when creating the consent URL. The user would then able to retrieve the access token by getting the code, which is returned as a GET parameter.
Obtain Authorization Code from Code, Client ID and Client Secret
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
User Consent Response
PayPal would redirect the user to the redirect_uri mentioned when creating the consent URL. The user would then able to retrieve the access token by getting the code, which is returned as a GET parameter.