To obtain an access token using postman
https://developer.paypal.com/docs/api/get-an-access-token-postman/
Note:
Most of the example in developer.paypal.com is using sandbox account.
Make the necessary changes when needed. E.g. remove the word sandbox from the URL to use it for production.
E.g. from https://api.sandbox.paypal.com/v1/oauth2/token to https://api.paypal.com/v1/oauth2/token.
Web experience profile
Note: Use postman to easily perform an http call.
Create new web experience profile
Method: POST
URL:
Sandbox: https://api.sandbox.paypal.com/v1/payment-experience/web-profiles/
PROD: https://api.paypal.com/v1/payment-experience/web-profiles/
Headers:
Key: Content-Type Value: application/json
Key: Authorization Value: Bearer <access_token>
To obtain an access token, see the instruction above.
Body: raw - JSON (application/json)
{
"name": "serbisyoProfile",
"presentation": {
"brand_name": "Serbisyo.com",
"logo_image": "url_of_the_logo"
},
"input_fields": {
"allow_note": false,
"no_shipping": 1,
"address_override": 1
},
"flow_config": {
"landing_page_type": "login"
}
}
Note: Logo should have a max height of 60px and max width of 190px.
Sample response:
{
"id": "XP-RFV4-PVD8-AGHJ-8E5J",
"name": "serbisyoProfile",
"presentation": {
"brand_name": "Serbisyo.com",
"logo_image": "url_of_the_logo"
},
"input_fields": {
"allow_note": false,
"no_shipping": 1,
"address_override": 1
},
"flow_config": {
"landing_page_type": "login"
}
}
Note: To update an existing PayPal web experience profile, just change the POST method to PUT above.
Retrieve web experience profile
Note: For existing web experience profiles, check our lastpass account.
Method: GET
URL:
Sandbox: https://api.sandbox.paypal.com/v1/payment-experience/web-profiles/<profile_id>
PROD: https://api.paypal.com/v1/payment-experience/web-profiles/<profile_id>
Headers:
Key: Content-Type Value: application/json
Key: Authorization Value: Bearer <access_token>