I'm integrating the PayPal JavaScript SDK to display the "Pay in 3 installments" banner on my e-commerce site. My store is based in Italy, so I expect the feature to work in production as well.
Here's the snippet I'm using:
<script src="https://www.paypal.com/sdk/js?client-id=SANDBOX_CLIENT-ID¤cy=EUR&components=messages" data-namespace="PayPalSDK"> </script>
In sandbox mode (using the sandbox client ID), the banner displays correctly. However, when I replace the sandbox client ID with my live client ID, the banner no longer appears.
For displaying the message, I use this HTML snippet:
Additionally, my page analysis shows the following errors in the console:
Error 422:
Failed to load resource: the server responded with a status of 422 ()
Content Security Policy Warning:
The source list for the Content Security Policy directive 'script-src' contains an invalid source: 'GfcG400PY+S0YDoJ10542N1p9I9r2US5NCiBn4ndimE='. It will be ignored.
I've double-checked that:
My store is set to Italy and the currency is EUR.
All other parameters in the SDK script remain unchanged.
I'm also wondering if my live account requires specific activation or approval to display the banner. Could it be that my account is not enabled for "Pay in 3 installments" in live mode?
Why might the banner be shown in sandbox but not in live mode? Could these errors or account activation requirements be causing the issue? Any insights or troubleshooting tips would be greatly appreciated.
Thank you!
I tried setting the price to a fixed value (e.g., 400 or 400.00), but nothing changed, the banner still doesn’t appear. It seems that my live account may need to be validated or explicitly enabled for "Pay in 3 installments." I followed this guide: https://developer.paypal.com/studio/checkout/pay-later/it/integrate. Has anyone encountered a similar issue or can offer further insight on how to validate my account for this feature?
For everyone experiencing the same issue as me: I was using PayPal with Shopify, and when I activated PayPal payments, Shopify automatically requested automatic payments. Unfortunately, these automatic payments conflict with the PayPal "Pay in 3 installments" banner. To resolve this, you need to contact PayPal support and explicitly ask them to disable automatic payments (also known as "reference transactions").