• Resolved diegomassaro

    (@diegomassaro)


    Good morning,

    I created a headless WooCommerce website and I’m using the WooCommerce Stripe Gateway. The problem is that I received first two orders, but I haven’t received the payments in Stripe or in my bank account. I suspect the customers haven’t actually paid for those orders. What could be the issue, and how can I resolve it?

    When I try to place an order, this error appears in the console:

    Refused to apply inline style because it violates the following Content Security Policy directive: “style-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-1bd1ss83rhoRESXnUSD+xUzVPZzKrKQPYKkWOj5TJIc=’), or a nonce (‘nonce-…’) is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the ‘unsafe-hashes’ keyword is present.

    Thank you,
    Diego

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi Diego @diegomassaro,

    Thank you for reaching out.

    The problem is that I received first two orders, but I haven’t received the payments in Stripe or in my bank

    Could you please share more details on the type of products you sell on your store? Are these physical or virtual products? Also, are you able to share the order notes from the said products?

    When I try to place an order, this error appears in the console:

    I understand you get an error message when in your browser console, however, was the order successfully place or did it fail? If it was, I recommend sharing the order notes as well.

    In the meantime, is logging enabled in your Stripe installation? You can check that at WooCommerce > Settings > Payments > Stripe > Settings under Advanced settings: Log error messages. If not, can you enable it and try to make a new test order and see if the logs would be generated.
    If logging was enabled, please share the latest Stripe log from WooCommerce > Status > Logs.

    Looking forward to your reply.

    Thread Starter diegomassaro

    (@diegomassaro)

    Hi @ckadenge , thank you for your response.

    Sure they are physical products. I am attaching a screenshot of one of the orders.

    The orders were successfully placed, but the customers haven’t paid. I did a test and during payment a bank popup appeared asking for 0 instead of the correct price.

    Sure, I am also attaching the latest Woocommerce Stripe Gateway log.

    2024-10-21T02:42:13+00:00 DEBUG 
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    account
    ====End Log====

    2024-10-21T07:42:40+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    account
    ====End Log====

    2024-10-21T07:42:41+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    payment_intents/seti_1Q92k7GWqSPhSEsxRjgAOPVz?expand[]=payment_method request: Array
    (
    )

    ====End Log====

    2024-10-21T07:42:41+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    payment_intents/seti_1Q92k7GWqSPhSEsxRjgAOPVz?expand[]=payment_method response with stripe-version: 2024-06-20
    ====End Log====

    2024-10-21T07:42:41+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    Failed to get Stripe intent payment_intents/seti_1Q92k7GWqSPhSEsxRjgAOPVz.
    ====End Log====

    2024-10-21T07:42:41+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    Response: stdClass Object
    (
    [error] => stdClass Object
    (
    [code] => resource_missing
    [doc_url] => https://stripe.com/docs/error-codes/resource-missing
    [message] => No such payment_intent: 'seti_1Q92k7GWqSPhSEsxRjgAOPVz'
    [param] => intent
    [request_log_url] => https://dashboard.stripe.com/acct_1Njep5GWqSPhSEsx/logs/req_zWkMeJdSmdMUCj?t=1729496561
    [type] => invalid_request_error
    )

    )

    ====End Log====

    2024-10-21T09:20:44+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    payment_intents/seti_1Q92k7GWqSPhSEsxRjgAOPVz?expand[]=payment_method request: Array
    (
    )

    ====End Log====

    2024-10-21T09:20:45+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    payment_intents/seti_1Q92k7GWqSPhSEsxRjgAOPVz?expand[]=payment_method response with stripe-version: 2024-06-20
    ====End Log====

    2024-10-21T09:20:45+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    Failed to get Stripe intent payment_intents/seti_1Q92k7GWqSPhSEsxRjgAOPVz.
    ====End Log====

    2024-10-21T09:20:45+00:00 DEBUG
    ====Stripe Version: 8.8.0====
    ====Stripe Plugin API Version: 2024-06-20====
    ====Start Log====
    Response: stdClass Object
    (
    [error] => stdClass Object
    (
    [code] => resource_missing
    [doc_url] => https://stripe.com/docs/error-codes/resource-missing
    [message] => No such payment_intent: 'seti_1Q92k7GWqSPhSEsxRjgAOPVz'
    [param] => intent
    [request_log_url] => https://dashboard.stripe.com/acct_1Njep5GWqSPhSEsx/logs/req_vu7MVocHVluq9f?t=1729502445
    [type] => invalid_request_error
    )

    )

    ====End Log====

    Plugin Support Reynier C. (woo-hc)

    (@reynierc)

    Hi @diegomassaro ,

    Thanks for providing all that additional info. Based on the logs, I see “No such payment_intent,” this means that Stripe couldn’t find a record of the payment attempt using the provided ID. This typically happens if a payment attempt never actually reached Stripe, which is why you didn’t see the funds.

    From your screenshot, since the order is marked “processing,” it likely means that the orders were placed but the system is still waiting for the payment confirmation from Stripe. Without this confirmation, no funds will be transferred to your bank account. The orders will remain in “processing” until the payment is successful or the order status is manually updated. Check your Stripe configuration and Content Security Policy (CSP) settings to ensure payments can process correctly.

    Refused to apply inline style because it violates the following Content Security Policy directive: “style-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-1bd1ss83rhoRESXnUSD+xUzVPZzKrKQPYKkWOj5TJIc=’), or a nonce (‘nonce-…’) is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the ‘unsafe-hashes’ keyword is present.

    To explain further, the CSP error in your console indicates that your website is blocking inline styles due to your current Content Security Policy settings, which are designed to improve security. This can prevent payment scripts from Stripe from running correctly, which might explain why payments aren’t being processed.

    Here’s what we suggest: First, check if you have any plugins or site customizations that might be introducing inline styles. If you find any, try to move these styles to external CSS files.

    If the issue persists, you may need to modify your CSP to allow Stripe’s scripts to run. You can add Stripe’s domain to the CSP directive or look into using nonces for inline styles related to payment processing.

    Let me know how it goes.

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.