VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: rongame on June 03, 2015, 09:50:02 AM

Title: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: rongame on June 03, 2015, 09:50:02 AM
hi i hope someone can help me. im having the error above during standard paypal payment plugin. Im using a sandbox. im getting 2 sets of email  notification one is a pending order and the other is

An error with your payment paypal on your store. The details are logged in the file. Details are below.

2015-06-03 07:38:07 MESSAGE plgVmConfirmedOrder: order number: 50d50122
2015-06-03 07:39:21 DEBUG PaymentNotification, paypal_data:: Array
(
    [mc_gross] => 1895.00
    [invoice] => 50d50122
    [protection_eligibility] => Eligible
    [address_status] => unconfirmed
    [item_number1] => BOU-FP-B265-11-7-14
    [payer_id] => 23PWP76S6B3V2
    [tax] => 0.00
    [address_street] => singapore
    [payment_date] => 00:39:18 Jun 03, 2015 PDT
    [payment_status] => Completed
    [charset] => gb2312
    [address_zip] => 10001
    [mc_shipping] => 0.00
    [mc_handling] => 0.00
    [first_name] => sing
    [mc_fee] => 79.43
    [address_country_code] => SG
    [address_name] => singapore singapore
    [notify_version] => 3.8
    [custom] => 01f6268b58a445ff10323ae3d2d81f1c
    [payer_status] => verified
    [business] => storesg@xxxxx.com
    [address_country] => Singapore
    [num_cart_items] => 1
    [mc_handling1] => 0.00
    [address_city] => singapore
    [verify_sign] => AYh-XTRUJrmmCvvrw0pwKeXAiMWPAruLUYnu-w0pf50cA88rvEd4okV3
    [payer_email] => buyer@xxxxx.com
    [mc_shipping1] => 0.00
    [tax1] => 0.00
    [txn_id] => 1JD67293DB714584B
    [payment_type] => instant
    [last_name] => gapore
    [address_state] =>
    [item_name1] => FPB265
    [receiver_email] => storesg@xxxxx.com
    [payment_fee] =>
    [quantity1] => 1
    [receiver_id] => PD5B7JXFKJ2SW
    [txn_type] => cart
    [mc_gross_1] => 1895.00
    [mc_currency] => PHP
    [residence_country] => SG
    [test_ipn] => 1
    [transaction_subject] => 01f6268b58a445ff10323ae3d2d81f1c
    [payment_gross] =>
    [ipn_track_id] => d150d163fb97
)
2015-06-03 07:39:21 DEBUG PaymentNotification, order_number:: 50d50122
2015-06-03 07:39:21 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 9
2015-06-03 07:39:21 DEBUG checkPaypalIps SANDBOX: Array
(
   
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Milbo on June 03, 2015, 10:50:16 AM
Please read here,

http://forum.virtuemart.net/index.php?topic=128518.msg442586#msg442586
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Tonimito on February 19, 2016, 18:51:28 PM
Hello,

I have the same problem as rongame, everything works perfectly except the Paypal IPN notification (work in Sandbox Mode).

Until last October 2015 I worked, we just updated versions of Joomla related (Joomla 3.4.8 and VM 3.0.12).

PayPal tells me HTTP 200 (As is correct) on a IPN Notification.

However, in the log paypal now:

2016-02-19 15:13:48 DEBUG PaymentNotification, order_number:: P2016021916
2016-02-19 15:13:48 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 2
2016-02-19 15:13:48 DEBUG checkPaypalIps SANDBOX: Array
(
    [0] => 173.0.82.126
)

2016-02-19 15:13:48 DEBUG checkPaypalIps REMOTE ADDRESS: 173.0.82.126
2016-02-19 15:13:48 ERROR validateIpnContent: Error while posting IPN:  ,  0
2016-02-19 15:13:48 DEBUG validateIpnContent: valid_ipn:
2016-02-19 15:30:26 DEBUG PaymentNotification, paypal_data:: Array
(
    [mc_gross] => 1.00
    [invoice] => P2016021911
    [auth_exp] => 07:10:28 Mar 20, 2016 PDT
    [protection_eligibility] => Eligible
    [address_status] => unconfirmed
    [payer_id] => SQD8KN7JTK4SQ
    [tax] => 0.00
    [address_street] => XXX
    [payment_date] => 07:30:19 Feb 19, 2016 PST
    [payment_status] => Completed
    [charset] => windows-1252
    [address_zip] => 08320
    [first_name] => test
    [transaction_entity] => payment
    [mc_fee] => 0.38
    [address_country_code] => ES
    [address_name] => name name
    [notify_version] => 3.8
    [custom] => iemmmvrfcik3mjud0nij49soo7
    [payer_status] => verified
    [business] => info-facilitator@sandbox.net
    [address_country] => Spain
    [address_city] => Barcelona
    [quantity] => 1
    [verify_sign] => AUifZwERiLeqHiGOvp8-DyOIYSJVAd801SiPX9p75xXdpeTBJG4wFWzK
    [payer_email] => info-buyer@sandbox.net
    [parent_txn_id] => 65B90485VF274201D
    [txn_id] => 3UX22966HT0182410
    [payment_type] => instant
    [remaining_settle] => 0
    [auth_id] => 65B90485VF274201D
    [last_name] => buyer
    [address_state] => 08
    [receiver_email] => info-facilitator@sandbox.net
    [auth_amount] => 29.07
    [payment_fee] =>
    [receiver_id] => TPCP44P35CQVG
    [txn_type] => web_accept
    [item_name] => P2016021911
    [mc_currency] => EUR
    [item_number] =>
    [residence_country] => ES
    [test_ipn] => 1
    [handling_amount] => 0.00
    [transaction_subject] =>
    [payment_gross] =>
    [auth_status] => Completed
    [shipping] => 0.00
    [ipn_track_id] => 18563d9beec80
)

2016-02-19 15:30:26 DEBUG PaymentNotification, order_number:: P2016021911
2016-02-19 15:30:26 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 2
2016-02-19 15:30:26 DEBUG checkPaypalIps SANDBOX: Array
(
    [0] => 173.0.82.126
)

2016-02-19 15:30:26 DEBUG checkPaypalIps REMOTE ADDRESS: 173.0.82.126
2016-02-19 15:30:26 ERROR validateIpnContent: Error while posting IPN:  ,  0
2016-02-19 15:30:26 DEBUG validateIpnContent: valid_ipn:


The hosting no used reversed Proxy (as indicated in: http://forum.virtuemart.net/index.php?topic=128518.msg442586#msg442586).

What can happen?
Thank you.
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: jjk on February 23, 2016, 14:01:43 PM
If you want to test ipn with the PayPal sandbox, you need to be logged into your sandbox account. See here:
https://developer.paypal.com/docs/classic/lifecycle/sb_ipn/
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Tonimito on February 24, 2016, 10:25:29 AM
Thanks for your reply,

If, as we have done, all right on an IPN test on paypal Sandbox. However if we do a sale at VM it gives the error that we comment: ERROR validateIpnContent: Error while posting IPN:  ,  0

Some help?
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Tonimito on March 15, 2016, 13:04:44 PM
Hello,

We upgraded to version 5.6 PHP we have changed the hosting, with changing IP. Now it works, without touching anything ¿?

What may be due?
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: jjk on March 15, 2016, 14:01:24 PM
Quote from: Tonimito on March 15, 2016, 13:04:44 PM
What may be due?
I have no clue - maybe something similar to this: http://forum.virtuemart.net/index.php?topic=130368.msg449175#msg449175  ;)
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Studio 42 on March 15, 2016, 14:31:33 PM
I solved it on adding the site URL in paypal IPN setting : https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-ipn-notify,
But the problem was not exactly the same.
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Tonimito on March 15, 2016, 15:49:41 PM
Thanks Studio 42,
Yes, we saw that we link POST. I think it was the same problem, as we have not touched anything of programming. We have only changed version 5.6 and PHP hosting provider has migrated to a new machine the web with changing IP. And now it works ¿?
It is simply to know where the error if it happens again or someone else happens.
Regards!
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Milbo on March 15, 2016, 21:02:50 PM
Which php version did you use before?
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Tonimito on March 16, 2016, 10:05:58 AM
Hello,

The the previous version of PHP is 5.3, but for many working days and one day he stopped working.

Thank you.
Title: Re: ERROR validateIpnContent: Error while posting IPN: , 0
Post by: Studio 42 on March 16, 2016, 11:20:14 AM
I had same problem, and only with my solution, the problem gone.
I called paypal, the support said to add the IPN. But is i said i don't had exactly same problem.
Some say that the problem come from OpenSSL 0.9.8(you can see release number with php info() or in Joomla php information) but in my case, this was not the problem.