News:

Support the VirtueMart project and become a member

Main Menu

Virtuemart 2 - Convalida IPN non corretta INVALID

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

Previous topic - Next topic

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

andry1187

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? :(

alatak

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


andry1187

#18
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

alatak

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.

andry1187

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?

alatak

Hello
I do not understand why some messages are in italian, when i wrote those in english, and they are not translatable.

andry1187


alatak


andry1187

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.

alatak

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);
}

andry1187

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


:( :( :'(


alatak


andry1187