• Resolved jelica

    (@jelica)


    Hi, and thanks for a great and easy to use plugin.
    I am just using buy button, and payment goes well on sandbox account.
    However the orders are not saved in admin, debug log is empty and wp_paypal_ipn_processed callback is never called.

    Steps:

    I tested ipn on paypal and got a green light
    Sandbox is not pending it is lowering the balance, so the payments seems to be successful.

    Do you have any idea what could I check more?
    Soon I will go live, and I would really like to have saved orders and ipn response..

    Thanks upfront πŸ™‚

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Noor Alam

    (@naa986)

    @jelica, Send a test IPN to http://yoursite.com/?wp_paypal_ipn=1 and see what happens.

    Thread Starter jelica

    (@jelica)

    Hi Noor, i see the message Empty PayPal IPN Request.

    After i remembered to remove my htacces protection on website I did tests again.. still no orders in admin but now i see in issue log

    [November 2, 2020 5:17 pm] - SUCCESS :Received IPN from PayPal
    [November 2, 2020 5:17 pm] - SUCCESS :
    Array
    (...)
    [November 2, 2020 5:17 pm] - SUCCESS :IPN Response: 
    [November 2, 2020 5:17 pm] - SUCCESS :
    Array
    (..)
    [November 2, 2020 5:17 pm] - SUCCESS :Received valid response from PayPal
    [November 2, 2020 5:17 pm] - SUCCESS :Payment Status - Pending
    [November 2, 2020 5:17 pm] - FAILURE :This payment cannot be processed

    I shorten the arrays, it all seems fine just pending…

    Hm, how it can be pending, when on sandbox account i see that is payed, there is no pending status anywhere, the review payments is set to off for this account and i see that money is subtracted from balance..

    What he paypal settings should be in order of the plugin to show orders?

    Thank you Noor for your support!

    Plugin Author Noor Alam

    (@naa986)

    @jelica, Is this log from the IPN simulator or have you made a test purchase? PayPal actually has a documentation for pending payments: https://www.paypal.com/us/brc/article/funds-availability

    Thread Starter jelica

    (@jelica)

    That one was from site, now i tested from paypal sandbox, ipn simulator, I checked Transaction type eCkeck -complete.
    Got the message
    IPN was sent and the handshake was verified.

    And on the website debug i see a lot of arrays and at the end

    [November 5, 2020 7:47 am] – SUCCESS :Received valid response from PayPal
    [November 5, 2020 7:47 am] – SUCCESS :Payment Status – Completed
    [November 5, 2020 7:47 am] – FAILURE :Seller PayPal ID ([email protected]) and Receiver PayPal ID ([email protected]) do not match. This payment cannot be processed.

    Thread Starter jelica

    (@jelica)

    Hm after this i checked settings, I am an idiot email and merchantId were switched. Now when the setting are correct, I repeat ipn simulator test

    [November 5, 2020 8:02 am] – SUCCESS :Received valid response from PayPal
    [November 5, 2020 8:02 am] – SUCCESS :Payment Status – Completed
    [November 5, 2020 8:02 am] – FAILURE :Seller PayPal ID (*********) and Receiver PayPal ID ([email protected]) do not match. This payment cannot be processed.

    and when i test from website I get pending…

    • This reply was modified 5 years, 7 months ago by jelica.
    • This reply was modified 5 years, 7 months ago by jelica.
    Plugin Author Noor Alam

    (@naa986)

    @jelica, So what was the original issue? It looks like your site is receiving the test IPN from PayPal. This error will obviously not happen in live mode because your seller IDs will match.

    Thread Starter jelica

    (@jelica)

    The issue is i dont see orders in admin, if it will work in live then no issues πŸ™‚ will do a test with live once just to check

    Thread Starter jelica

    (@jelica)

    Hi Noor, me again.
    After setting up my site live, i tested paypal with 0.01eur for real. Payment went well, but in orders on website order did not appear…
    Debug is also empty. Now the order was completed, I saw in account. So it works, but I would like to see orders in admin…

    my_callback_function (){}
    add_action('wp_paypal_ipn_processed', 'my_callback_function');

    This function is not called at all… And i would like to see ion response, since I am also sending custom params to paypal..
    heeelp

    Plugin Author Noor Alam

    (@naa986)

    @jelica, I’m not really sure what is happening. But an empty debug file means the plugin is not receiving any notification from your live PayPal account. You do have IPN enabled in your live PayPal account right?

    Thread Starter jelica

    (@jelica)

    It wooorks, ipn was not enabled, thanks for a great plugin.
    Can you please tell me how to send custom param to paypal with your wp_paypal shortcode?

    i need to send for example user = 11252432435

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

The topic ‘Sandbox orders not saved, debug empty’ is closed to new replies.