I am using the paypals rest API and integrating paypal with payments.
I manage to create the web experience profile with the following code, but i cant run this code 2 times, it says the profile already exists.
does this mean that i have to create one profile and use it for all customers and all transactions ?
for how long a web experience profile is is valid for.
or do i have to change the profile name and create a new profile for each transaction ?
curl -v POST https://api.sandbox.paypal.com/v1/payment-experience/web-profiles \
-H 'Content-Type:application/json' \
-H 'Authorization: Bearer <Access-Token>' \
-d '{
"name": "YeowZa! T-Shirt Shop",
"presentation": {
"brand_name": "YeowZa! Paypal",
"logo_image": "site",
"locale_code": "US"
},
"input_fields": {
"allow_note": true,
"no_shipping": 0,
"address_override": 1
},
"flow_config": {
"landing_page_type": "billing",
"bank_txn_pending_url": "site"
}
}'