VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: andry1187 on July 10, 2013, 10:03:15 AM

Title: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 10, 2013, 10:03:15 AM
Hello guys someone has ever happened, using paypal, you will receive an email with subject: Validation IPN INVALID incorrect? and consequently do not receive confirmation of purchase?
[in summary I purchase, I select paypal but I get an email with the subject of the genre:

Validation incorrect IPN ​​INVALID

body of the email:


error with paypal IPN NOTIFICATION INVALID
mc_gross = 10.15
invoice = da8f06
protection_eligibility = Ineligible
address_status = unconfirmed
payer_id = JQL8DQD2FPUMJ
tax = 0.00
address_street = via scala dei marmi
payment_date = 14:05:34 Jul 09, 2013 PDT
payment_status = Pending
charset = windows-1252
address_zip = 96100
first_name = Marco
address_country_code = IT
address_name = Marco Rossi
notify_version = 3.7
custom = 7e996c8311cd505eebabda2a5610607e
payer_status = verified
business = info@email.it
address_country = Italy
address_city = Palermo
quantity = 1
verify_sign = AqBqA1nSf.CEBj1d5rbDP.LO-woKA4TJRQvI--PURKUC2QvnE.pRmHv2
payer_email = email@virgilio.it
txn_id = 0RF2134373957641X
payment_type = instant
last_name = Rossi
address_state = Siracusa
receiver_email = mail@mail.it
pending_reason = unilateral
txn_type = web_accept
item_name = Numero 'dine: da8f06
mc_currency = EUR
item_number =
residence_country = IT
handling_amount = 0.00
transaction_subject = 7e996c8311cd505eebabda2a5610607e
payment_gross =
shipping = 0.00
ipn_track_id = 1419f3a8ea728


thank you!
A.

VM 2.0.12f
Joomla 2.5.9
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: AH on July 10, 2013, 17:11:39 PM
Slightly off topic but I suggest 2 things

Upgrade joomla to 2.5.11
Upgrade Vm to 2.0.22

Keep your sites up to date to avoide problems
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 11, 2013, 10:33:08 AM
Why offtopic?

So, i can upgrade because i customize the cart, check-out e other php file.. i just need to corrige this error.

Someone can help me?
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: jenkinhill on July 11, 2013, 10:49:58 AM
The Paypal plugin in later VirtueMart versions has been modified to work with Paypal's altered notified IPs, so an update to VM is a good idea - I don't know if just grabbing the Paypal plugin from the current version aio component will work with an older VM version.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 11, 2013, 10:51:45 AM
uhm... i can try to download the last versione and give just the paypal plugin?? and why in older website paypal works ?

ty
A.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: jenkinhill on July 11, 2013, 10:56:54 AM
The error does not show in every transaction..........
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 11, 2013, 12:12:58 PM
The errors show every time a customer choose PAYPAL like payment method... if they choose bank transfer how payment work perfectly

:(
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: Maxim Pishnyak on July 11, 2013, 21:27:02 PM
Quote from: andry1187 on July 11, 2013, 10:33:08 AM
So, i can upgrade because i customize the cart, check-out e other php file.. i just need to corrige this error.

Someone can help me?
So did you updated to the last version your shop and your template overrides?
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 12, 2013, 12:15:58 PM
i can't update VM . Current versione is 2.0.12f but i edit the php file of the cart view, order, mail. If update i will lost all work.. any suggest?

Joomla now is the last version.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: jenkinhill on July 12, 2013, 13:32:40 PM
Quote from: andry1187 on July 12, 2013, 12:15:58 PM
i edit the php file of the cart view, order, mail.

If these were the view (template) files you edited then set your files as template overrides. Then they do not get overwritten during upgrades. See http://forum.virtuemart.net/index.php?topic=116676.msg393691#msg393691
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 12, 2013, 15:26:38 PM
Yes i know, but i use too k2mart so i should check all projec.. i would like just adjust paypal plugin ...

What i can do to fix the plugin and stop? Change some address?? suggest?
A
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: Maxim Pishnyak on July 12, 2013, 17:20:16 PM
Quote from: andry1187 on July 12, 2013, 15:26:38 PM
Yes i know, but i use too k2mart so i should check all projec.. i would like just adjust paypal plugin ...

What i can do to fix the plugin and stop? Change some address?? suggest?
It's dirty and unstable solution for web shop. For its design, speed and security.

So you need to focus on paypal related files:
1. Archive you web shop.
2. Download it.
3. Unpack.
4. Donwload VM/VMAIO (last version).
5. Unpack.
6. Google and download last version of Kdiff or Winmerge.
7. Compare necessary files with Kdiff/Winmerge
8. When you'll be sure that you know which file need to update, overwrite it with more newer version.
9. Pray to god that when you resolve current bug, other related bugs won't jump on you from your "updated" web shop.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: AH on July 12, 2013, 18:18:19 PM
Praying!

The last refuge for bad planning and testing!
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 18, 2013, 09:33:32 AM
Sorry guys, i can resolve the paypal problem without update VM?

A.
thank you
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 29, 2013, 12:46:16 PM
anyone can help me?
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: Maxim Pishnyak on July 29, 2013, 14:33:11 PM
you could find newest paypal plugin files here
Quote from: Maxim Pishnyak on July 29, 2013, 10:21:08 AM
Virtuemart files for Virtuemart Developer Team here in SVN place
https://dev.virtuemart.net/projects/virtuemart/repository/show/trunk/virtuemart/plugins/vmpayment/paypal
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 29, 2013, 14:39:57 PM
i've download it.. but i receive the fallow messagge error in mailbox:


Hello,

error with paypal IPN NOTIFICATION HTTP/1.0 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=14400
Strict-Transport-Security: max-age=14400
text/html; charset=UTF-8
Date: Mon, 29 Jul 2013 12:37:37 GMT
Content-Length: 7
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=lWg1bwMwSkZg7Dh3YO2GRfcRYyYKtD7H9Egk7L-aFHrYZYxxKufRg2w_JJ37Ez7_mmATkxmQsCJA76GuGP8i_sCIXNoo5kB_ZzICH441hd4XqBCx_b8UxP9n_ZzajhpcPNbPVbLer9tk5MXoclUHK8VViJj8i1yMJgiu26tGD144y1FyJCS8rI7y8azu5MZTUf6yo8G94lRT2S0_n89WBoFBUiUafPGACi2PMo35fK0cb-ZmPGH7w9WBpWckyd6KOrBe4Ull6_EM71U9Xo1Rk10nO2aqrMSmY2wCSn0vYrdi2TxA3NdYH_ESlnEoIMFN2KBmLeIFgwdyJIQx2E8nr5XCcZcDxEV84oCRL4lDIEEy53a7XtO5rNMFW05DrkR8vSwSiEqjanExk88OFnKInUoYuYV8gvvq17n0EfNKrvQrYaUtSJu_BuoS8WK; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Thu, 27-Jul-2023 12:37:36 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, 24-Jul-2033 12:37:36 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.73.8.137.1375101456551108; path=/; expires=Wed, 22-Jul-43 12:37:36 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE5.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D274921041; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.73.8.32.1375101456538346; path=/; expires=Wed, 22-Jul-43 12:37:36 GMT
Set-Cookie: aksession=1375101757~id=cookie+Vj6iY2x6SsZ4bmHY1fnn72vhYi9IYhoU3S50/yiPoxR7M+KG8HLRtLCHpvPlEVaFeS+9otM8uYoL6o6X8cOHHSmYs0c35cOBXd7HiBlpqQi4tyuP+AxkOL6i9yyUwBzXo4AgSvoCj4=; expires=Mon, 29-Jul-2013 12:42:37 GMT; path=/; domain=.paypal.com

INVALID....


why? :(
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on July 29, 2013, 16:27:04 PM
Hello
Can you turn on the debug option in the Paypal configuration.
This will log in a file logs/paypal.log more infos then the one sent via email.
May be that will help to undrestand why you have this problem

Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 29, 2013, 16:48:59 PM
Below the paypal.log




2013-07-29 10:54:53
message: plgVmConfirmedOrder order number: 965506

2013-07-29 10:57:14
message: plgVmConfirmedOrder order number: 746107

2013-07-29 10:57:42
message: paypal_data 0.01   746107   Eligible   unconfirmed   QD6RNMDEG933Y   0.00   via filisto, 123   03:57:40 Jul 29, 2013 PDT   Completed   windows-1252   96100   Mario   0.01   IT   Mario Rossi   3.7   bjgmftjqgohjgom69ok0g44f46   verified   myemail@paypal.com   Italy   Siracsa   1   ABr7TF1VNJRHrFfJkVMfCcSa87ETAsMYX6U.HrZG4HVmy12mi7EnzDEe   customer@email.com   10P41501TB1309634   instant   Rossi   Ascoli Piceno   myemail@paypal.com      KDGP4VMX5CCXW   web_accept   Numero 'dine: 746107   EUR      IT   0.00   bjgmftjqgohjgom69ok0g44f46      0.00   ec67d091d1dc0

2013-07-29 10:57:42
message: process IPN Convalida IPN non correttaINVALID

2013-07-29 10:57:42
ERROR: process IPN Convalida IPN non correttaINVALID

2013-07-29 14:46:23
message: plgVmConfirmedOrder order number: 51b209

2013-07-29 14:46:43
message: paypal_data 0.01   51b209   Eligible   unconfirmed   QD6RNMDEG933Y   0.00   via filisto, 123   07:46:40 Jul 29, 2013 PDT   Completed   windows-1252   96100   Mario   0.01   IT   Mario Rossi   3.7   bjgmftjqgohjgom69ok0g44f46   verified   myemail@paypal.com   Italy   Catania   1   AW5dKcUVEHXD5ygC8yn-vrZ8gc5-A1VFuRXR5NNAvUQo7HjfKxWFiDIS   customer@email.com   4RM17256SE300135P   instant   Rossi   Ascoli Piceno   myemail@paypal.com      KDGP4VMX5CCXW   web_accept   Numero 'dine: 51b209   EUR      IT   0.00   bjgmftjqgohjgom69ok0g44f46      0.00   49f257da8b8f1

2013-07-29 14:46:43
message: checkPaypalIps: 23.59.34.234,173.0.81.33,173.0.81.1 server is:66.211.170.66

2013-07-29 14:46:43
message: _processIPN checkPaypalIps FALSE

2013-07-29 14:46:43
message: paypal_data _processIPN FALSE



And there is the mail that i've received:

Error code 506. Possible fraud. Error with REMOTE IP ADDRESS = 66.211.170.66.
                       The remote address of the script posting to this notify script does not match a valid PayPal ip address

           These are the valid IP Addresses: 23.59.34.234,173.0.81.33,173.0.81.1The Order ID received was: 51b209

hope ur help.
A.
thank you
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on July 29, 2013, 17:53:30 PM
Hello
Are you using the paypal version included in the Virtuemart Aio? or are you using another version.
QuoteERROR: process IPN Convalida IPN non correttaINVALID
All the infos logged in the file should be in english

As far as i can see the paypal data is correct. There is no reason why it should say that it is invalid.

QuoteThese are the valid IP Addresses: 23.59.34.234,173.0.81.33,173.0.81.1The Order ID received was: 51b209
It looks like sometimes it happens sometimes due to Paypal.
Some time ago, other persons on the forum got this problem, and then it disapeared.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 29, 2013, 18:22:47 PM
Yes,, how you see in preview post i use: VM Aio 2.0.12f

I recover other paypal, the first, the error is the same in paypal.log

2013-07-29 16:19:50
message: plgVmConfirmedOrder order number: 020c010

2013-07-29 16:20:15
message: paypal_data 0.01   020c010   Eligible   unconfirmed   QD6RNMDEG933Y   0.00   via cercala, 123   09:20:07 Jul 29, 2013 PDT   Completed   windows-1252   96100   Mario   0.01   IT   Mario Rossi   3.7   bjgmftjqgohjgom69ok0g44f46   verified   myemail@paypal.com   Italy   Catania   1   AE8ZuhFUR7Zsh0.vEL9Ies2oeMy1AmkSPtU2m35R3wrCOfM77V3OdlhQ   customer@email.it   7XP57338Y6891753R   instant   Rossi   Ascoli Piceno   myemail@paypal.com      KDGP4VMX5CCXW   web_accept   Numero 'dine: 020c010   EUR      IT   0.00   bjgmftjqgohjgom69ok0g44f46      0.00   38d3b130afee4

2013-07-29 16:20:15
message: process IPN Convalida IPN non correttaINVALID

2013-07-29 16:20:15
ERROR: process IPN Convalida IPN non correttaINVALID


Any suggest?
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on July 30, 2013, 13:10:23 PM
Hello
I do not understand why some messages are in italian, when i wrote those in english, and they are not translatable.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 30, 2013, 13:13:06 PM
:( i don't know.. i hope just resolve....
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on July 30, 2013, 13:19:23 PM
Hello
go here
http://dev.virtuemart.net/projects/virtuemart/files
and install this version
plgvm_virtuemart_paypal_vm2.0.12f_1.2.zip
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 30, 2013, 13:27:53 PM
i did.. below the mail that i've received:


Error code 506. Possible fraud. Error with REMOTE IP ADDRESS = 66.211.170.66.
                       The remote address of the script posting to this notify script does not match a valid PayPal ip address

           These are the valid IP Addresses: 23.51.242.234,173.0.81.1,173.0.81.33The Order ID received was: 8c0f011


A.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on July 30, 2013, 14:30:02 PM
Hello
ah yes.

replace this code

if ($method->sandbox) {
$paypal_iplist = gethostbynamel ('ipn.sandbox.paypal.com');
$paypal_iplist = (array)$paypal_iplist;
} else {
$paypal_iplist1 = gethostbynamel ('www.paypal.com');
$paypal_iplist2 = gethostbynamel ('notify.paypal.com');
$paypal_iplist = array_merge ($paypal_iplist1, $paypal_iplist2);
}


by this code

if ($method->sandbox) {
$paypal_iplist = gethostbynamel('ipn.sandbox.paypal.com');
$paypal_iplist = (array)$paypal_iplist;
} else {
$paypal_iplist1 = gethostbynamel('www.paypal.com');
$paypal_iplist2 = gethostbynamel('notify.paypal.com');
$paypal_iplist3 = array('216.113.188.202', '216.113.188.203', '216.113.188.204', '66.211.170.66');
if (!is_array($paypal_iplist1) or !is_array($paypal_iplist2)) {
$mail_subject = "PayPal IPN Transaction Warning on your site: Could not resolve paypal hostname";
$mail_body = " One of the PayPal hostname could not be resolved \n";
if (!is_array($paypal_iplist1)) {
$paypal_iplist1 = array();
$mail_body .= " www.paypal.com \n";
}
if (!is_array($paypal_iplist2)) {
$paypal_iplist2 = array();
$mail_body .= " notify.paypal.com \n";
}
$this->sendEmailToVendorAndAdmins($mail_subject, $mail_body);
}

$paypal_iplist = array_merge($paypal_iplist1, $paypal_iplist2, $paypal_iplist3);
}
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 30, 2013, 14:38:22 PM
i did it.. below the mail received:


Hello,

error with paypal IPN NOTIFICATION HTTP/1.0 200 OK
Server: Apache
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=14400
Strict-Transport-Security: max-age=14400
text/html; charset=UTF-8
Date: Tue, 30 Jul 2013 12:35:42 GMT
Content-Length: 7
Connection: close
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=lmhNVq5k6fDWsIfUtpdnXL66tVvKegG6osyCFb8dqHj3rVqJ6nCn5hQzL-le8HOQ0Juwc19hZpZ-37tg-MKlMW-nemfAPPBO2GiKVGOsnvRKX7hgOM4yZroVBHcz7LaJq72iq3yTyz7btsnw464bRxZEdwQTJCRAS9fTs5VctFKKQaWvB3xfSlOGLQpEUfq-uTAtblWXbHNadi3f3O6YEI3DdPxXDg75IBqHUShaohAUiCS_uaGx0siLIdEnFddbsQnJ8SbLvstsKyv7sHK0KYfWeHbvbQJUGfQ94D2489VUtyP8ljH96ZvJFukfWmzu0Bv-mlWpuihuYZ4HzF-Mv2r86Fhzvvc0-7xF6mHuftjeLzXTYEv6O1jssBtXENnvHFFdVEilVnTgcrA1miIj5Ee7lmKl8bvJ_xKXWbGiAG_Mm4Zawf18_FauE4C; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Fri, 28-Jul-2023 12:35:42 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Mon, 25-Jul-2033 12:35:42 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.74.8.134.1375187741667617; path=/; expires=Thu, 23-Jul-43 12:35:41 GMT
Set-Cookie: X-PP-SILOVER=name%3DLIVE6.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D498333521; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.74.8.34.1375187741654788; path=/; expires=Thu, 23-Jul-43 12:35:41 GMT
Set-Cookie: aksession=1375188042~id=cookie4IxA6SVsovX9cBcfnKVX2OAt1LfpwIxLcRIfrLdC7YujGheXKGU+RkTclHKzA5gWiUroG/c6s7G9uq6Gf4PmLx8hGKNZbqips49hsNzOQWFwValIMYzFGom9mdS2ZuJURiLaFNQIS2Q=; expires=Tue, 30-Jul-2013 12:40:42 GMT; path=/; domain=.paypal.com

INVALID
mc_gross = 0.01
invoice = bb2f012
protection_eligibility = Eligible
address_status = unconfirmed
payer_id = QD6RNMDEG933Y
tax = 0.00
address_street = via filisto, 123
payment_date = 05:35:37 Jul 30, 2013 PDT
payment_status = Completed
charset = windows-1252
address_zip = 96100
first_name = Mario
mc_fee = 0.01
address_country_code = IT
address_name = Mario Rossi
notify_version = 3.7
custom = 3603ff6e2e6f11f363d9996287e700fb
payer_status = verified
business = myemail@paypal.com
address_country = Italy
address_city = Catania
quantity = 1
verify_sign = Af2B.chPHFza964HDkykKZGUFTPaAFC14e4RJfDyMyCMMhglvZepOW9X
payer_email = customer@email.it
txn_id = 9UF90730671189400
payment_type = instant
last_name = Rossi
address_state = Ascoli Piceno
receiver_email = myemail@paypal.com
payment_fee =
receiver_id = KDGP4VMX5CCXW
txn_type = web_accept
item_name = Numero 'dine: bb2f012
mc_currency = EUR
item_number =
residence_country = IT
handling_amount = 0.00
transaction_subject = 3603ff6e2e6f11f363d9996287e700fb
payment_gross =
shipping = 0.00
ipn_track_id = 4ae1c7a247c4c


:( :( :'(
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 31, 2013, 14:11:28 PM
other suggest alatak?:(
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on July 31, 2013, 15:45:18 PM
Hello
No sorry, at the moment no clue
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on July 31, 2013, 15:46:38 PM
:( puff

what else i can try?
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on August 07, 2013, 00:28:51 AM
Anyone can Help me to resolve The problem?

Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on August 09, 2013, 09:23:58 AM
up guys :(

I can't resolve puff... :( is there somebody?
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on August 27, 2013, 11:52:51 AM
up  :'(
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on November 21, 2013, 10:07:07 AM
any suggest?? How i can fix it without update?

regards
A.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on December 02, 2013, 19:39:49 PM
Hello
Version VM 2.0.12f ?
Try this version http://dev.virtuemart.net/attachments/download/574/plgvm_virtuemart_paypal_vm2.0.12f_1.2.zip
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: andry1187 on December 02, 2013, 21:45:05 PM
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?? :((
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: Milbo on December 03, 2013, 16:36:15 PM
We strongly recommend to update your virtuemart.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on December 03, 2013, 22:11:15 PM
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



Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: razor7 on November 21, 2014, 20:24:29 PM
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
)
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on November 26, 2014, 17:06:27 PM
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
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: razor7 on November 27, 2014, 21:19:54 PM
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.
Title: Re: Virtuemart 2 - Convalida IPN non corretta INVALID
Post by: alatak on December 01, 2014, 14:09:17 PM
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.