- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have succesfully integrated PayPal Smart Payment Buttons in to a website that I'm working on by following the instructions here:
https://developer.paypal.com/docs/checkout/integrate/#
Up until today all was working well. Clicking on any of the payment options (PayPal, Visa etc.) would launch the payment window. I could successfully complete a payment and verify the transaction.
All of a sudden though, the call to paypal.Buttons() throws the following error:
Refused to display 'https://www.sandbox.paypal.com/us/home' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' https://*.paypal.com".
I can still launch the payment window by clicking a payment option, but it just displays the loading spinner and doesn't show the payment screen.
I also tested this on a live account and am getting the same error.
The demo buttons on the PayPal site also seem to be broken:
https://developer.paypal.com/demo/checkout/#/pattern/client
Has anyone else experienced this issue? It seems like PayPal may have changed the content security policy on their end which is causing the issue?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am observing the same issue at https://developer.paypal.com/docs/checkout/ and https://developer.paypal.com/demo/checkout/#/pattern/client.
The cards buttons do not work and payment options (except PayPal) are white popups.
How can it be fixed?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- p is not a function error using the example downloaded from Paypal in SDKs
- How do you create subscriptions with PayPal Advanced Checkout? in SDKs
- How to integrate PayPal during user signup to avoid re-entering credentials for future payments? in REST APIs
- Create Pay Links using PayPal API in REST APIs