Hi, you might like to carry out a test transaction now that you have enabled Debug Mode in the plugin.
After your test transaction check the log file. It will reveal exactly what is going on in the background. Please report back and exclude any personal or private data from the log file.
Thank you
Hi, thanks…
Here’s the log file info for 2 transactions:
------------------------------------------------------------------
Successful Order from customer placed last night
[01/07/2016 4:05 AM] - SUCCESS :Paypal Class Initiated by xxx.x.xx.x
[01/07/2016 4:05 AM] - SUCCESS :Post string : mc_gross=-11.00&protection_eligibility=Ineligible&item[...BUNCH OF DETAILS OMMITTED-]subject=wp_cart_id%3D2082%26ip%xxxxxxxxxxxxxxxx&payment_gross=&ipn_track_id=xxxxxxxxxxxxxxxxxxxxx&
[01/07/2016 4:05 AM] - FAILURE :Connection to www.paypal.com failed. fsockopen error no. :
[01/07/2016 4:05 AM] - SUCCESS :Paypal class finished.
------------------------------------------------------------------
'Sandbox' Order placed just now. Didn't seem to get an order notification email; but maybe that was because it was in Sandbox mode.
[01/07/2016 9:16 AM] - SUCCESS :Paypal Class Initiated by 173.0.82.126
[01/07/2016 9:16 AM] - SUCCESS :Post string [Details removed]
[01/07/2016 9:16 AM] - FAILURE :Connection to www.sandbox.paypal.com failed. fsockopen error no. :
[01/07/2016 9:16 AM] - SUCCESS :Paypal class finished.
------------------------------------------------------------------
Hi, I can already see the problem. You are using sandbox testing. Are still running Sandbox testing or are you running a live site?
No, in that Log file, the top (first) transaction was done when Sandbox was turned off – and is a real transaction; it appears the log info for this transaction was captured afterall, so hopefully there’s info in there.
I only enabled Sandbox to create a the second (test) order – as PayPal won’t allow me to purchase an item from my own seller account; and I have no other accounts to use to test it.
You can however purchase an item using a credit card. PayPal allows that option depending on the PayPal account you have. This way you could carry out a test purchase and then check the log file.
Yes, ok, but do I need a test purchase if I’ve got a real purchase? Is there not enough info to go on? I removed some stuff from the post string; but thought it was all standard cart stuff.
It would be good if you could clear the log file and then carry out another purchase “Not using Sandbox texting” and then check the log file again. Share the whole log file here, removing any private and personal data from the log file or rewriting it to some dummy info.
Thank you
ok; done. try this… many thanks.
[01/08/2016 5:33 AM] - SUCCESS :Paypal Class Initiated by xxx.0.xx.1
[01/08/2016 5:33 AM] - SUCCESS :Post string : mc_gross=0.10&protection_eligibility=Ineligible&address_status=unconfirmed&item_number1=&payer_id=3ZW6GXLZAKY4C&tax=0.00&address_street=1++Street+Name&payment_date=21%3A33%3A42+Jan+07%2C+2016+PST&payment_status=Completed&charset=windows-1252&address_zip=3216&mc_shipping=0.00&mc_handling=0.00&first_name=Goshen&mc_fee=0.10&address_country_code=AU&address_name=Goshen+Last+name¬ify_version=3.8&custom=wp_cart_id%3D2088%26ip%3D58.178.238.225&payer_status=unverified&business=xxxxxx%40geelongkites.com.au&address_country=Australia&num_cart_items=1&mc_handling1=0.00&address_city=Belmont&verify_sign=AAOnhFQsgt7FWvfVvoGJIn6lntPkAMvz9CMqmyyywaNkP8.d-lTNjklR&payer_email=xxxxx%40gmail.com&mc_shipping1=0.00&tax1=0.00&txn_id=88804604HA285564N&payment_type=instant&last_name=Last+name&address_state=Victoria&item_name1=Test+Product&receiver_email=xxxxx%40geelongkites.com.au&payment_fee=&quantity1=1&receiver_id=xxxxxxxxxxxxxxxxxx&txn_type=cart&mc_gross_1=0.10&mc_currency=AUD&residence_country=AU&receipt_id=2825-6619-0429-2164&transaction_subject=wp_cart_id%3D2088%26ip%3D58.178.238.225&payment_gross=&ipn_track_id=d82fa9739f11d&
[01/08/2016 5:33 AM] - FAILURE :Connection to www.paypal.com failed. fsockopen error no. :
[01/08/2016 5:33 AM] - SUCCESS :Paypal class finished.
Thats an issue coming from your server. Your server is preventing the plugin from validating the PayPal IPN (which requires PHP fsockopen function to be available).
Show this fsockopen error to your hosting provider to they can enable it.
ok, thanks – it’s been fixed by my host. although not sure why you suggested not to use sandbox though… It provided both the [fsockopen] error, and once my host allowed the connection, my first test transaction with sandbox came through and displayed fine.
cheers for the help.
@goshenw I am glad to hear you solved your issue. Yes you are correct the error was visible for both the Sandbox and live transaction.
Sorry about my suggestion to not use Sandbox. Sometimes people find it a bit challenging to set up a Sandbox environment and rather than get them to troubleshoot the Sandbox environment I always ask the carry out a live transaction.
However in this case I did not read the error correctly and should have picked up the following [fsockopen] error in the log file above.