business logo broken on invoices

restdev
Contributor
Contributor

I have uploaded my business logo to a secure website. I create/send an invoice using rest api in the sandbox with the logo_url set to my logo url.

 

I then check the notifications on the dashboard and load the invoice email the image is broken. Inspecting with browser shows console error:

 

Refused to load the image 'https://www.coplus.co.uk/wp-content/uploads/2018/03/CoplusPNG_Cropped_200x80.png' because it violates the following Content Security Policy directive: "img-src 'self' https://*.paypalobjects.com https://*.google-analytics.com https://*.paypal.com".

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

restdev
Contributor
Contributor

Created a workaround myself. 

 

Logged int paypal and created a new invoice template with my logo on it. Once saved i viewed the template, inspected my logo using developer tools and copied the url (paypal uploaded the logo to their servers when saving template). Used this url in my rest invoice request and works perfectly.

View solution in original post

Login to Me Too
2 REPLIES 2

MTS_Justin
Moderator
Moderator
Wrong forum - Moving to REST / Invoicing

Was my post helpful? If so, please give me a kudos!
Login to Me Too
Solved

restdev
Contributor
Contributor

Created a workaround myself. 

 

Logged int paypal and created a new invoice template with my logo on it. Once saved i viewed the template, inspected my logo using developer tools and copied the url (paypal uploaded the logo to their servers when saving template). Used this url in my rest invoice request and works perfectly.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.