News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Virtuemart 2 - Convalida IPN non corretta INVALID

Started by andry1187, July 10, 2013, 10:03:15 AM

Previous topic - Next topic

andry1187


andry1187

up guys :(

I can't resolve puff... :( is there somebody?


andry1187

any suggest?? How i can fix it without update?

regards
A.


andry1187

i tried.. the log is:

2013-12-02 20:42:40
message: plgVmConfirmedOrder order number: ffd8043

The order is always in PENDING status.. don't confirm.

I try to complete the check-out process with sandbox, the payment all ok but the status is still pending. Any suggest?? :((

Milbo

We strongly recommend to update your virtuemart.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

alatak

#37
Hello andry1187

Your problem is that the item name sent to PayPal is Numero d'ordine
There is a ' on the item name.
If i rename the item name to something else, then it works.

I though it could be a problem with the magic quotes, but you have them off
I tried on another test website with the item name = Numero d'ordine, and it works

so at the moment i do not know what is your problem




razor7

Hi guys, I know this is an old post, but this is exactly my issue.

I'm finishing my brand new site with VM 2 cart integrated, fully upgraded to Joomla! 2.5.27 and VirtueMart 2.6.12.2.

I'm testing my paypal payment method, but I get ERROR Invalid IPN validation and the order status is not updated to Confirmed

What am I doing?

The following is the log of the order number 69f306, it appears several times in the log becuse I was trying the "resend" feature of PayPal IPN History page.


2014-11-21 18:43:17 ERROR Invalid IPN validation: Array
(
    [paypal_data] => Array
        (
            [mc_gross] => 2.00
            [invoice] => 69f306
            [protection_eligibility] => Ineligible
            [payer_id] => E6DBD3TMV44T8
            [tax] => 0.00
            [payment_date] => 10:42:30 Nov 21, 2014 PST
            [payment_status] => Completed
            [charset] => windows-1252
            [first_name] => Martin Sebastian
            [mc_fee] => 0.43
            [notify_version] => 3.8
            [custom] => 2d83442c442f321e26aa766c0d4ced4c
            [payer_status] => verified
            [business] => paypal@mgscreativa.com
            [quantity] => 1
            [verify_sign] => A2S-C.Y6Y9TpqJXgSim76To8U-4CA6V31uAIq7SHYABoSGaTt99pS.XK
            [payer_email] => us.paypal@mgscreativa.com
            [txn_id] => 7UP566937H553941L
            [payment_type] => instant
            [last_name] => Briglia Ghia
            [receiver_email] => paypal@mgscreativa.com
            [payment_fee] =>
            [receiver_id] => MCZSW7CHU8BZA
            [txn_type] => web_accept
            [item_name] =>
            [mc_currency] => EUR
            [item_number] =>
            [residence_country] => US
            [handling_amount] => 0.00
            [transaction_subject] => 2d83442c442f321e26aa766c0d4ced4c
            [payment_gross] =>
            [shipping] => 0.00
            [ipn_track_id] => 558ac30b45635
        )

    [post_msg] => cmd=_notify-validate&mc_gross=2.00&invoice=69f306&protection_eligibility=Ineligible&payer_id=E6DBD3TMV44T8&tax=0.00&payment_date=10%3A42%3A30+Nov+21%2C+2014+PST&payment_status=Completed&charset=windows-1252&first_name=Martin+Sebastian&mc_fee=0.43&notify_version=3.8&custom=2d83442c442f321e26aa766c0d4ced4c&payer_status=verified&business=paypal%40mgscreativa.com&quantity=1&verify_sign=A2S-C.Y6Y9TpqJXgSim76To8U-4CA6V31uAIq7SHYABoSGaTt99pS.XK&payer_email=us.paypal%40mgscreativa.com&txn_id=7UP566937H553941L&payment_type=instant&last_name=Briglia+Ghia&receiver_email=paypal%40mgscreativa.com&payment_fee=&receiver_id=MCZSW7CHU8BZA&txn_type=web_accept&item_name=&mc_currency=EUR&item_number=&residence_country=US&handling_amount=0.00&transaction_subject=2d83442c442f321e26aa766c0d4ced4c&payment_gross=&shipping=0.00&ipn_track_id=558ac30b45635
    [paypal_res] => HTTP/1.1 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8
DC: slc-a-origin-www-1.paypal.com
Date: Fri, 21 Nov 2014 18:43:17 GMT
Content-Length: 7
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=NcM1RovoKznf3t1vn50TE0diOLXXpiPpbMlU4sWY66eK5l8b4K0Ob__lAFDlfFs3LssqD8zdl1Xyoz3oOZr1eDOOj4fqtTwsMzI65FJWWRqACfHHGIQjh0p6Zt2Rz66zvA5YGRQE9azjuOltoTN7AEQSwaAR34QrgNYCQX1GwARvz0FeCxt6c6SfAkO5-l_78NAEcSrjNEL5I0ZpPWWJH90At8YWYza4PLJ_ecjbqawgPDqqUfKrwvotFqVZgIbEJ72jZ0X86tPOv3SBwSip9xCh4Guc2zUGGdMg5-1j9oACw6GJcAyOvKnaR0aEqZrPqgRLk8XNDeQoyjVjVzvoE9eK60ZbY1I3ULjcditRbFf7QfBJtdScNEeS4UoZWugBU3bLZFwGnY0n2g0UWQ4PUT3RWjOWYxbCFoZl1YoT0jeC8odLS0PsZ70aGzK; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Mon, 18-Nov-2024 18:43:17 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Sun, 20-Nov-2016 18:43:17 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.73.8.134.1416595396795973; path=/; expires=Sun, 13-Nov-44 18:43:16 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE5.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D3297210196; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: Apache=10.73.8.36.1416595396783797; path=/; expires=Sun, 13-Nov-44 18:43:16 GMT
Set-Cookie: AKDC=slc-a-origin-www-1.paypal.com; expires=Fri, 21-Nov-2014 19:13:17 GMT; path=/; secure
Strict-Transport-Security: max-age=63072000

INVALID
)

2014-11-21 18:54:48 ERROR Invalid IPN validation: Array
(
    [paypal_data] => Array
        (
            [transaction_subject] => 2d83442c442f321e26aa766c0d4ced4c
            [payment_date] => 10:54:14 Nov 21, 2014 PST
            [last_name] => Briglia Ghia
            [residence_country] => US
            [item_name] =>
            [payment_gross] =>
            [mc_currency] => EUR
            [business] => paypal@mgscreativa.com
            [payment_type] => instant
            [protection_eligibility] => Ineligible
            [verify_sign] => A6ifKX3rR1ds5MZaNNpfUNOO02MZAkcM0KPWJCZY05xcpWucR2dtvj2D
            [payer_email] => us.paypal@mgscreativa.com
            [txn_id] => 2VG89718TX038481S
            [receiver_email] => paypal@mgscreativa.com
            [first_name] => Martin Sebastian
            [parent_txn_id] => 7UP566937H553941L
            [invoice] => 69f306
            [payer_id] => E6DBD3TMV44T8
            [receiver_id] => MCZSW7CHU8BZA
            [reason_code] => refund
            [item_number] =>
            [handling_amount] => 0.00
            [payment_status] => Refunded
            [payment_fee] =>
            [mc_fee] => -0.08
            [shipping] => 0.00
            [mc_gross] => -2.00
            [custom] => 2d83442c442f321e26aa766c0d4ced4c
            [charset] => windows-1252
            [notify_version] => 3.8
            [ipn_track_id] => ad56372c2f1bd
        )

    [post_msg] => cmd=_notify-validate&transaction_subject=2d83442c442f321e26aa766c0d4ced4c&payment_date=10%3A54%3A14+Nov+21%2C+2014+PST&last_name=Briglia+Ghia&residence_country=US&item_name=&payment_gross=&mc_currency=EUR&business=paypal%40mgscreativa.com&payment_type=instant&protection_eligibility=Ineligible&verify_sign=A6ifKX3rR1ds5MZaNNpfUNOO02MZAkcM0KPWJCZY05xcpWucR2dtvj2D&payer_email=us.paypal%40mgscreativa.com&txn_id=2VG89718TX038481S&receiver_email=paypal%40mgscreativa.com&first_name=Martin+Sebastian&parent_txn_id=7UP566937H553941L&invoice=69f306&payer_id=E6DBD3TMV44T8&receiver_id=MCZSW7CHU8BZA&reason_code=refund&item_number=&handling_amount=0.00&payment_status=Refunded&payment_fee=&mc_fee=-0.08&shipping=0.00&mc_gross=-2.00&custom=2d83442c442f321e26aa766c0d4ced4c&charset=windows-1252&notify_version=3.8&ipn_track_id=ad56372c2f1bd
    [paypal_res] => HTTP/1.1 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8
DC: slc-a-origin-www-2.paypal.com
Date: Fri, 21 Nov 2014 18:54:48 GMT
Content-Length: 7
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=WmD-5njE3JvImE3R7K6ECc8YAq4bt2vkaa9RxXcRm7587tjXlGZ5AtjnYq2ogWFS88nNvmLrWUr9RtkVsWXFTS1ZrqusPAcwRGvqtJ3B7pbz9mPXp5C-1koXiZAl6m5u3QYKty_ZMi_7mhawVTOO5aBltYLzKuIUPA88UtPG7jmWYDunvLJmnSqqmOxd8SSJuFHTbzOj80nq2rnjhDVEk-zwsMI5NsdLhohqaSHq6HC8vrb5v0OSetodJBCeytpEocQO6jWPZQGNNDbYUuRv1EjDLcw3-MqNWKmtQGCgSfAnFVrylVku0losw7AAI-uq1MOGV-5YPWorfmww14Cdl7cgaYhyvfkPOYNGitmOkAJr_YWvTtBL-rpsY74prT5W-iwfLxqV53f1o6DF9zBYsalo0PfNquuM1t6ZQiMiriVubfP2-IncTdMxU9q; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Mon, 18-Nov-2024 18:54:48 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Sun, 20-Nov-2016 18:54:48 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.73.8.137.1416596087718563; path=/; expires=Sun, 13-Nov-44 18:54:47 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE5.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D2005561172; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: Apache=10.73.8.54.1416596087705768; path=/; expires=Sun, 13-Nov-44 18:54:47 GMT
Set-Cookie: AKDC=slc-a-origin-www-2.paypal.com; expires=Fri, 21-Nov-2014 19:24:48 GMT; path=/; secure
Strict-Transport-Security: max-age=63072000

INVALID
)

2014-11-21 18:57:41 ERROR Invalid IPN validation: Array
(
    [paypal_data] => Array
        (
            [handling_amount] => 0.00
            [payer_id] => E6DBD3TMV44T8
            [ipn_track_id] => 558ac30b45635
            [invoice] => 69f306
            [shipping] => 0.00
            [charset] => windows-1252
            [payment_gross] =>
            [verify_sign] => An5ns1Kso7MWUdW4ErQKJJJ4qi4-AnGn0-2AJdou3jsnaNZKpk1L8hNB
            [item_name] =>
            [txn_type] => web_accept
            [receiver_id] => MCZSW7CHU8BZA
            [payment_fee] =>
            [mc_currency] => EUR
            [transaction_subject] => 2d83442c442f321e26aa766c0d4ced4c
            [custom] => 2d83442c442f321e26aa766c0d4ced4c
            [protection_eligibility] => Ineligible
            [payer_status] => verified
            [first_name] => Martin Sebastian
            [mc_gross] => 2.00
            [payment_date] => 10:42:30 Nov 21, 2014 PST
            [payment_status] => Completed
            [quantity] => 1
            [business] => paypal@mgscreativa.com
            [item_number] =>
            [last_name] => Briglia Ghia
            [txn_id] => 7UP566937H553941L
            [mc_fee] => 0.43
            [resend] => true
            [payment_type] => instant
            [notify_version] => 3.8
            [payer_email] => us.paypal@mgscreativa.com
            [receiver_email] => paypal@mgscreativa.com
            [tax] => 0.00
            [residence_country] => US
        )

    [post_msg] => cmd=_notify-validate&handling_amount=0.00&payer_id=E6DBD3TMV44T8&ipn_track_id=558ac30b45635&invoice=69f306&shipping=0.00&charset=windows-1252&payment_gross=&verify_sign=An5ns1Kso7MWUdW4ErQKJJJ4qi4-AnGn0-2AJdou3jsnaNZKpk1L8hNB&item_name=&txn_type=web_accept&receiver_id=MCZSW7CHU8BZA&payment_fee=&mc_currency=EUR&transaction_subject=2d83442c442f321e26aa766c0d4ced4c&custom=2d83442c442f321e26aa766c0d4ced4c&protection_eligibility=Ineligible&payer_status=verified&first_name=Martin+Sebastian&mc_gross=2.00&payment_date=10%3A42%3A30+Nov+21%2C+2014+PST&payment_status=Completed&quantity=1&business=paypal%40mgscreativa.com&item_number=&last_name=Briglia+Ghia&txn_id=7UP566937H553941L&mc_fee=0.43&resend=true&payment_type=instant&notify_version=3.8&payer_email=us.paypal%40mgscreativa.com&receiver_email=paypal%40mgscreativa.com&tax=0.00&residence_country=US
    [paypal_res] => HTTP/1.1 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8
DC: slc-origin-www.paypal.com
Date: Fri, 21 Nov 2014 18:57:41 GMT
Content-Length: 7
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=k4Axo2zrYBOdn_xNbC4lkPUafWrzvTlhVBjPnjJHxOFmeVvgY7zGZj7-9UqXmHcH0bDOt4lN54oiP1HO4TLeuJ_fowva3fqv0RCfkRZgCMU0hCaFKjyUCiKJX11nd6W5soZHUQGlRM9VQpJe3SpRawOikzm2seKuZhsFo2XmNgYw6zmIWfrRonTShjgVybmEX7jErA0XNnlR0YPC2PzGG-f4d8gGxmQ8rVahjt00LAmh0QeyQnM6WP6XQLI2D7NdkYHOVP5o_3cGueUlr5pRMuJw_GFm7MzQOfMwOhr57YUMER5Om994up_aC0NgjhPjbBtNUzGvqBX0HBucQcDycxmntSLDWSndE33C2fcFbYAurqvWOVK2p8CycIvzhtP_odQBK_VmTfOMo3KjSXAroUG2f-vEzj3xD11GCsKvRuIWAbP8Tcy-MNsW6aa; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Mon, 18-Nov-2024 18:57:40 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Sun, 20-Nov-2016 18:57:40 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.16.0.14.1416596260425954; path=/; expires=Sun, 13-Nov-44 18:57:40 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE9.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D613117780; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: Apache=10.16.0.11.1416596260419252; path=/; expires=Sun, 13-Nov-44 18:57:40 GMT
Set-Cookie: AKDC=slc-origin-www.paypal.com; expires=Fri, 21-Nov-2014 19:27:41 GMT; path=/; secure
Strict-Transport-Security: max-age=63072000

INVALID
)

2014-11-21 19:09:05 ERROR Invalid IPN validation: Array
(
    [paypal_data] => Array
        (
            [handling_amount] => 0.00
            [payer_id] => E6DBD3TMV44T8
            [ipn_track_id] => 558ac30b45635
            [invoice] => 69f306
            [shipping] => 0.00
            [charset] => windows-1252
            [payment_gross] =>
            [verify_sign] => An5ns1Kso7MWUdW4ErQKJJJ4qi4-AnGn0-2AJdou3jsnaNZKpk1L8hNB
            [item_name] =>
            [txn_type] => web_accept
            [receiver_id] => MCZSW7CHU8BZA
            [payment_fee] =>
            [mc_currency] => EUR
            [transaction_subject] => 2d83442c442f321e26aa766c0d4ced4c
            [custom] => 2d83442c442f321e26aa766c0d4ced4c
            [protection_eligibility] => Ineligible
            [payer_status] => verified
            [first_name] => Martin Sebastian
            [mc_gross] => 2.00
            [payment_date] => 10:42:30 Nov 21, 2014 PST
            [payment_status] => Completed
            [quantity] => 1
            [business] => paypal@mgscreativa.com
            [item_number] =>
            [last_name] => Briglia Ghia
            [txn_id] => 7UP566937H553941L
            [mc_fee] => 0.43
            [resend] => true
            [payment_type] => instant
            [notify_version] => 3.8
            [payer_email] => us.paypal@mgscreativa.com
            [receiver_email] => paypal@mgscreativa.com
            [tax] => 0.00
            [residence_country] => US
        )

    [post_msg] => cmd=_notify-validate&handling_amount=0.00&payer_id=E6DBD3TMV44T8&ipn_track_id=558ac30b45635&invoice=69f306&shipping=0.00&charset=windows-1252&payment_gross=&verify_sign=An5ns1Kso7MWUdW4ErQKJJJ4qi4-AnGn0-2AJdou3jsnaNZKpk1L8hNB&item_name=&txn_type=web_accept&receiver_id=MCZSW7CHU8BZA&payment_fee=&mc_currency=EUR&transaction_subject=2d83442c442f321e26aa766c0d4ced4c&custom=2d83442c442f321e26aa766c0d4ced4c&protection_eligibility=Ineligible&payer_status=verified&first_name=Martin+Sebastian&mc_gross=2.00&payment_date=10%3A42%3A30+Nov+21%2C+2014+PST&payment_status=Completed&quantity=1&business=paypal%40mgscreativa.com&item_number=&last_name=Briglia+Ghia&txn_id=7UP566937H553941L&mc_fee=0.43&resend=true&payment_type=instant&notify_version=3.8&payer_email=us.paypal%40mgscreativa.com&receiver_email=paypal%40mgscreativa.com&tax=0.00&residence_country=US
    [paypal_res] => HTTP/1.1 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8
DC: slc-a-origin-www-1.paypal.com
Date: Fri, 21 Nov 2014 19:09:05 GMT
Content-Length: 7
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=8gNeuNtgxyPVZn2lo2l4ed2Yurc66mWSVS8CIzNn5yZ0yziHdyBhDc8ywcV4xLlxv7jhNmB3qGtbbiSEIN9TKNR7J9tMMecAnUX7vEQpYlaOPzrlicQWCVqqwPK_ljhjdtTvvAJHawn_Zj_gaV6TXvllN0A23LGbrEGib3YPz1FALPQxSGFrxFTUDjPrJvuXdWO_NuC9S3MhdkRAGHP-Su4aNGst8a2y1fVFalGmQEuIq-MPQ6-7SzhDX56AXT7oyYwbfKRm8yu9cTYEfnpvRUcA-MHAxS1KNS0Q3VdNRGG0HD7agOTa31c_LTmTOch6Y4XuHbOMBCg1lz4gSa1Zd7RJodpr7KOIwI70j4AIVPuKZ_VghJ-z90ByqjFEZQCbHEVXcI9-MlA9NzW62bIvUdWZTVp47zt60nPsBhIelsZW_NXb3ULbx6T34oa; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Mon, 18-Nov-2024 19:09:05 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Sun, 20-Nov-2016 19:09:05 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.73.8.134.1416596944792681; path=/; expires=Sun, 13-Nov-44 19:09:04 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE5.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D3498930004; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: Apache=10.73.8.39.1416596944781293; path=/; expires=Sun, 13-Nov-44 19:09:04 GMT
Set-Cookie: AKDC=slc-a-origin-www-1.paypal.com; expires=Fri, 21-Nov-2014 19:39:05 GMT; path=/; secure
Strict-Transport-Security: max-age=63072000

INVALID
)
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store

alatak

#39
Hello
I have checked your log file.

I checked field per field. What is sent back to paypal is correct. So i do not understand why paypal returns INVALID

razor7

Hi guys, after a LOT of research and several hours of help from alatak, I can confirm that the issue occurs if I do checkout with my site in Spanish. If I do checkout with my site in English, PayPal works just as expected.

So I think I found a bug here, will keep trying to hunt it!

If you have any hint, just let me know.

Thanks!

PD: As far as I can tell, all multilang features are working just fine. Using J1 2.5 standar multilang features, no lang addons at all.
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store

alatak

Hello
Razor7 did a lot of testing, and sent an email to Paypal. Their answer was:
QuoteThe item_name is passed as "&item_name=Nº de pedido" it should only be alphanumeric. 
I have done a fix and now all characters but alphanumeric characters & space, are removed. (in VM2 and VM3)
I am not sure it is the exact correct fix, because in my tests i could use the string "Nº de pedido"
But razor7 has tested has tested the fix and it works.