• Resolved hejhog

    (@hejhog)


    WordPress 6.8.3
    Woo 10.2.2
    PayPal Payments 3.1.2
    20 25 Theme

    Upgrade PayPal Payments from 3.1.1 to 3.1.2 .
    Advance Payment Options are no longer available and the Debit/Credit Card input fields at checkout are not showing in “Payment options”.

    Have tried creating a new connection to the PayPal API. The only way I can resolve is by rolling back to 3.1.1.

    Console shows the following error that may be related:

    Content-Security-Policy: The page’s settings blocked an inline script (script-src-elem) from being executed because it violates the following directive: “script-src 'sha256-k268HCSRGGlch2JT9A18A+BRKhmvQ6F8FKaNWiHURfY=' 'sha256-7NZVyquLCGtnypjq9H9ySFBj+awIDMJiugb3ZmAOMNE=' 'sha256-MkvCXwEdBhR/QU6eqGX5THWCtkqlaanwiNzVKNI9Vb8=' 'self' 'unsafe-inline' https://*.paypal.com https://*.paypalobjects.com”. Consider using a hash ('sha256-eTunBvgAptPLLZ3OqBweR+2ndiksZEPRMfg0dY6yA1Y=') or a nonce. preload.js:139:16
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Sai (woo-hc)

    (@saivutukuru)

    Hello @hejhog,

    Thanks for the detailed report! From what you’ve shared, the console error you’re seeing points to a Content-Security-Policy (CSP) restriction blocking PayPal’s inline script.

    A few things to check/try:

    1. Content Security Policy rules – The latest update may require additional PayPal script sources to be whitelisted. If your site/server enforces CSP headers, you may need to update them to allow the inline script hash shown in the error or ensure https://*.paypal.com and https://*.paypalobjects.com are permitted.
    2. Theme/Plugin conflict – Please try a conflict test by switching temporarily to Storefront theme and disabling all plugins except WooCommerce + PayPal Payments. Does the card field return under 3.1.2 in that setup?
    3. Test environment – Since rolling back to 3.1.1 resolves it, the behavior does look specific to 3.1.2. Could you confirm if the issue persists on a staging site with a clean setup (WordPress, WooCommerce, PayPal Payments only)?

    Could you run through the conflict test and share the results? That will help narrow down whether this is environment-specific or a broader plugin issue.

    Thread Starter hejhog

    (@hejhog)

    Tested on staging site as follows:

    All plugins disabled.
    Twenty Twenty-Five Theme
    Reinstalled WP 6.8.3
    Reinstalled Woo 10.2.2 (had previously tested on Woo 10.2.1)
    Reinstalled PayPal Payments 3.1.2

    Switched to StoreFront Theme

    The only solution is rolling back to 3.1.1

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for the details. Since this issue appears after updating to PayPal Payments 3.1.2 and rolling back to 3.1.1 resolves it, the problem is related to the PayPal Payments plugin rather than WooCommerce core.

    In this forum we only provide support for WooCommerce core features. Since the issue is coming from the PayPal Payments plugin, If you are using the following plugin, https://woocommerce.com/products/woocommerce-paypal-payments/ . I’d recommend creating a ticket with the plugin developers directly here: PayPal Payments Support

    Thread Starter hejhog

    (@hejhog)

    Thanks. Create a ticket on GitHub.
    https://github.com/woocommerce/woocommerce-paypal-payments/issues/3735T

    Ticket created on PayPal Payments support feed.
    https://wordpress.org/support/topic/paypal-payments-credit-card-payments-fields-no-longer-display-2/#new-topic-0

    • This reply was modified 5 months, 1 week ago by hejhog.
    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for creating a ticket on GitHub for this issue. I would also suggest creating a ticket with the plugin support team here:
    WooCommerce PayPal Payments Support

    If there isn’t a bug in the plugin, the support team will be able to help you resolve the issue.

    Plugin Support Ejay F – a11n

    (@ejayfernandes)

    Hi @hejhog,

    It’s been some time since your last reply, so we’ll close this thread for now.

    If you’ve been happy with WooCommerce and the support you received, we’d really appreciate a quick review here:
    https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

    You’re always welcome to create a new topic if you need assistance in the future.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.