We are going to re-use the sample code from CreateWebProfile.php. If you have not visited the sample yet, please visit it before trying GetWebProfile.php The CreateWebProfile.php will create a web profile for us, and return a CreateProfileResponse, that contains the web profile ID.
If your request is successful, the API returns a web_profile object response that contains the profile details.
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Get Web Profile
If your request is successful, the API returns a web_profile object response that contains the profile details. Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#retrieve-a-web-experience-profile