Content Security Policy (CSP)
If your website sends a Content-Security-Policy header, the browser blocks any script, frame, or connection that the policy does not allow. Add the entries for the product you use so the Paypercut SDK and the payment forms it displays can load.
You do not need any of these entries if your website does not send a Content-Security-Policy header. Keep the entries your website already needs, such as 'self', and add the Paypercut entries to them.
Entries per product
Embedded Checkout
| Directive | Origin | When |
|---|---|---|
frame-src |
https://buy.paypercut.io |
Always |
script-src |
https://cdn.jsdelivr.net or https://unpkg.com |
You load the SDK from a CDN |
script-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
frame-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
font-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
img-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
connect-src |
https://applepay.cdn-apple.com, https://smp-paymentservices.apple.com |
You offer Apple Pay outside Safari |
style-src |
'unsafe-inline' |
You offer Apple Pay outside Safari |
Card entry, 3-D Secure authentication, and Google Pay run inside Paypercut frames, so you do not need a connect-src entry for Paypercut.
Apple's payment sheet styling requires 'unsafe-inline' in style-src. Without the Apple Pay entries, Apple Pay is unavailable outside Safari and all other payment methods keep working.
Elements
| Directive | Origin | When |
|---|---|---|
frame-src |
https://buy.paypercut.io |
Always |
connect-src |
https://api.paypercut.io, https://buy.paypercut.io |
Always |
script-src |
https://cdn.jsdelivr.net or https://unpkg.com |
You load the SDK from a CDN |
Split card fields
| Directive | Origin | When |
|---|---|---|
frame-src |
https://buy.paypercut.io, https://js.basistheory.com |
Always |
script-src |
https://js.basistheory.com |
Always |
connect-src |
https://api.paypercut.io, https://buy.paypercut.io, https://api.basistheory.com |
Always |
script-src |
https://cdn.jsdelivr.net or https://unpkg.com |
You load the SDK from a CDN |
Express Checkout
| Directive | Origin | When |
|---|---|---|
frame-src |
https://buy.paypercut.io |
Always |
connect-src |
https://api.paypercut.io, https://api.basistheory.com |
Always |
script-src |
https://cdn.jsdelivr.net or https://unpkg.com |
You load the SDK from a CDN |
script-src |
https://pay.google.com |
You offer Google Pay |
script-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
frame-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
font-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
img-src |
https://applepay.cdn-apple.com |
You offer Apple Pay outside Safari |
connect-src |
https://applepay.cdn-apple.com, https://smp-paymentservices.apple.com |
You offer Apple Pay outside Safari |
style-src |
'unsafe-inline' |
You offer Apple Pay outside Safari |
Apple's payment sheet styling requires 'unsafe-inline' in style-src. Without the Apple Pay entries, Apple Pay is unavailable outside Safari and all other payment methods keep working.

