• Resolved melefabrizio

    (@melefabrizio)


    On an ecommerce I’m working on this happens:
    – when PayPal sandbox is configured, everything works as intended, and on payment the manager receives the “new order” email, and the customer the “order received” one.
    – when actual PayPal data are configured in, woocommerce does not switch the status from “waiting for payment” to “processing”, thus no one receives any email until the manager manually switches it.

    I’ve activated paypal logging in woo, and for both orders it receives the payment confirmation correctly (and logs it):

    Actual data:

    `2018-04-27T17:35:06+00:00 INFO Received valid response from PayPal
    2018-04-27T17:35:06+00:00 INFO Found order #49842
    2018-04-27T17:35:06+00:00 INFO Payment status: completed
    `

    Sandbox:

    `2018-05-02T10:29:19+00:00 INFO Received valid response from PayPal
    2018-05-02T10:29:19+00:00 INFO Found order #57472
    2018-05-02T10:29:19+00:00 INFO Payment status: completed
    `
    I have some plugins installed, but no one concerns woocommerce checkout and payment process.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello!
    Please make sure that the IPN is configured properly with PayPal, on the live settings, not the sandbox.

    Thread Starter melefabrizio

    (@melefabrizio)

    That’s even stranger: sandbox works even if IPN is not configured neither on wp or paypal side. Live doesn’t work even configuring IPN, return address and everything, from the paypal dashboard.
    With live settings, order status stays “waiting for payment”, but every 5-10 minutes or so appears an order note that says “IPN payment completed” –> screenshot

    Hi,

    Have you done a plugin conflict test?

    It could be that a caching plugin or server cache interfering with PayPal’s response.

    There’s a documented issue between PayPal Standard and W3C Cache, which you seem to be running on the site.

    You can follow this guide https://docs.woocommerce.com/document/troubleshooting-order-status-not-changing-on-order-complete-conflict-with-w3-total-cache/ to troubleshoot that issue.

    Thread Starter melefabrizio

    (@melefabrizio)

    Hello, I tried to deactivated W3C altogether but it didn’t affect anything. pasted is the wc-log from the last dummy purchase (made with production paypal data).
    arrays are omitted to lighten up the log. From the log it seems that woocommerce receives and aknowledges correctly the payment, it just fails to change the order status.

    ->log here<-

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Thanks for that information!

    I’m going to also recommend a full conflict test, as it sounds like something is stopping that order status from updating.

    The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront and disable all plugins except for WooCommerce.

    If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter melefabrizio

    (@melefabrizio)

    I’ve solved the issue: turns out a plugin we wrote was filtering woocommerce_payment_complete_order_status, and not returning the status hence blocking everything.

    i feel stupid

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Thanks so much for letting us know – I’m glad you found it! And you would not be the first to have fun into something like this. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce ignores non-sandbox paypal payment’ is closed to new replies.