VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: carsten888 on March 03, 2016, 08:27:28 AM

Title: An error with your payment method paypal on your store
Post by: carsten888 on March 03, 2016, 08:27:28 AM
A valid paypal payment token was denied by VM. I got this email from VM:
QuoteHello,

An error with your payment method paypal on your store ********. The details are logged in the file paypal.1.log.php

. The VirtueMart Team

The client paid, but the token was denied, so status remained on 'pending', client angry etc. Please fix this.

From the log:
2016-02-26 16:13:56 MESSAGE plgVmConfirmedOrder: order number: TG6505800
2016-02-26 16:28:44 MESSAGE plgVmConfirmedOrder: order number: QM3X05801
2016-02-26 16:29:33 DEBUG PaymentNotification, paypal_data:: Array
(
    [mc_gross] => 24.20
    [invoice] => QM3X05801
    [protection_eligibility] => Eligible
    [address_status] => unconfirmed
    [payer_id] => 4Z5KXZAVX7S7Q
    [tax] => 0.00
    [address_street] => *******
    [payment_date] => 08:29:20 Feb 26, 2016 PST
    [payment_status] => Completed
    [charset] => windows-1252
    [address_zip] => 36194
    [first_name] => *******
    [mc_fee] => 1.17
    [address_country_code] => ES
    [address_name] => *******
    [notify_version] => 3.8
    [custom] => ******************
    [payer_status] => verified
    [business] => *************
    [address_country] => Spain
    [address_city] => BARRO
    [quantity] => 1
    [verify_sign] => AZsMAD7lpF53UaZFve4baDUmTCMDAr3XHOpd6un6NncKfw6ZBXkVCqyc
    [payer_email] => **************
    [txn_id] => 4DP139293W003861F
    [payment_type] => instant
    [payer_business_name] => ***************
    [last_name] => *************
    [address_state] => 36
    [receiver_email] => **********
    [payment_fee] =>
    [receiver_id] => ZL2TU9JHPMZRE
    [txn_type] => web_accept
    [item_name] => Order Number: QM3X05801
    [mc_currency] => EUR
    [item_number] =>
    [residence_country] => ES
    [handling_amount] => 0.00
    [transaction_subject] =>
    [payment_gross] =>
    [shipping] => 0.00
    [ipn_track_id] => 5ae64fbd81523
)

2016-02-26 16:29:33 DEBUG PaymentNotification, order_number:: QM3X05801
2016-02-26 16:29:33 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 1
2016-02-26 16:29:33 DEBUG checkPaypalIps PRODUCTION: Array
(
    [0] => 2.17.47.12
    [1] => 173.0.81.1
    [2] => 173.0.81.33
    [3] => 216.113.188.202
    [4] => 216.113.188.203
    [5] => 216.113.188.204
    [6] => 66.211.170.66
    [7] => 173.0.88.66
    [8] => 173.0.88.98
    [9] => 173.0.84.66
    [10] => 173.0.84.98
    [11] => 173.0.80.00
    [12] => 173.0.80.01
    [13] => 173.0.80.02
    [14] => 173.0.80.03
    [15] => 173.0.80.04
    [16] => 173.0.80.05
    [17] => 173.0.80.06
    [18] => 173.0.80.07
    [19] => 173.0.80.08
    [20] => 173.0.80.09
    [21] => 173.0.80.10
    [22] => 173.0.80.11
    [23] => 173.0.80.12
    [24] => 173.0.80.13
    [25] => 173.0.80.14
    [26] => 173.0.80.15
    [27] => 173.0.80.16
    [28] => 173.0.80.17
    [29] => 173.0.80.18
    [30] => 173.0.80.19
    [31] => 173.0.80.20
    [32] => 173.0.82.126
    [33] => 173.0.88.67
    [34] => 173.0.88.99
    [35] => 173.0.84.99
    [36] => 173.0.84.67
    [37] => 173.0.88.69
    [38] => 173.0.88.101
    [39] => 173.0.84.69
    [40] => 173.0.84.101
    [41] => 173.0.88.68
    [42] => 173.0.88.100
    [43] => 173.0.84.68
    [44] => 173.0.84.100
    [45] => 173.0.81.1
    [46] => 173.0.81.33
    [47] => 64.4.240.0
    [48] => 64.4.240.1
    [49] => 64.4.240.2
    [50] => 64.4.240.3
    [51] => 64.4.240.4
    [52] => 64.4.240.5
    [53] => 64.4.240.6
    [54] => 64.4.240.7
    [55] => 64.4.240.8
    [56] => 64.4.240.9
    [57] => 64.4.240.10
    [58] => 64.4.240.11
    [59] => 64.4.240.12
    [60] => 64.4.240.13
    [61] => 64.4.240.14
    [62] => 64.4.240.15
    [63] => 64.4.240.16
    [64] => 64.4.240.17
    [65] => 64.4.240.18
    [66] => 64.4.240.19
    [67] => 64.4.240.20
    [68] => 118.214.15.186
    [69] => 118.215.103.186
    [70] => 118.215.119.186
    [71] => 118.215.127.186
    [72] => 118.215.15.186
    [73] => 118.215.151.186
    [74] => 118.215.159.186
    [75] => 118.215.167.186
    [76] => 118.215.199.186
    [77] => 118.215.207.186
    [78] => 118.215.215.186
    [79] => 118.215.231.186
    [80] => 118.215.255.186
    [81] => 118.215.39.186
    [82] => 118.215.63.186
    [83] => 118.215.7.186
    [84] => 118.215.79.186
    [85] => 118.215.87.186
    [86] => 118.215.95.186
    [87] => 202.43.63.186
    [88] => 69.192.31.186
    [89] => 72.247.111.186
    [90] => 88.221.43.186
    [91] => 92.122.143.186
    [92] => 92.123.151.186
    [93] => 92.123.159.186
    [94] => 92.123.163.186
    [95] => 92.123.167.186
    [96] => 92.123.179.186
    [97] => 92.123.183.186
)

2016-02-26 16:29:33 DEBUG checkPaypalIps REMOTE ADDRESS:
2016-02-26 16:29:33 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = .
                        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: 2.17.47.12,173.0.81.1,173.0.81.33,216.113.188.202,216.113.188.203,216.113.188.204,66.211.170.66,173.0.88.66,173.0.88.98,173.0.84.66,173.0.84.98,173.0.80.00,173.0.80.01,173.0.80.02,173.0.80.03,173.0.80.04,173.0.80.05,173.0.80.06,173.0.80.07,173.0.80.08,173.0.80.09,173.0.80.10,173.0.80.11,173.0.80.12,173.0.80.13,173.0.80.14,173.0.80.15,173.0.80.16,173.0.80.17,173.0.80.18,173.0.80.19,173.0.80.20,173.0.82.126,173.0.88.67,173.0.88.99,173.0.84.99,173.0.84.67,173.0.88.69,173.0.88.101,173.0.84.69,173.0.84.101,173.0.88.68,173.0.88.100,173.0.84.68,173.0.84.100,173.0.81.1,173.0.81.33,64.4.240.0,64.4.240.1,64.4.240.2,64.4.240.3,64.4.240.4,64.4.240.5,64.4.240.6,64.4.240.7,64.4.240.8,64.4.240.9,64.4.240.10,64.4.240.11,64.4.240.12,64.4.240.13,64.4.240.14,64.4.240.15,64.4.240.16,64.4.240.17,64.4.240.18,64.4.240.19,64.4.240.20,118.214.15.186,118.215.103.186,118.215.119.186,118.215.127.186,118.215.15.186,118.215.151.186,118.215.159.186,118.215.167.186,118.215.199.186,118.215.207.186,118.215.215.186,118.215.231.186,118.215.255.186,118.215.39.186,118.215.63.186,118.215.7.186,118.215.79.186,118.215.87.186,118.215.95.186,202.43.63.186,69.192.31.186,72.247.111.186,88.221.43.186,92.122.143.186,92.123.151.186,92.123.159.186,92.123.163.186,92.123.167.186,92.123.179.186,92.123.183.186The Order ID received was: QM3X05801

Title: Re: An error with your payment method paypal on your store
Post by: GJC Web Design on March 03, 2016, 10:18:48 AM
discussed and answer so many times

http://bfy.tw/4Yrc
Title: Re: An error with your payment method paypal on your store
Post by: carsten888 on March 03, 2016, 10:57:16 AM
when I search this forum with "An error with your payment method paypal on your store" there are no relevant search results.
(and something is going very wrong with the highlight tags, you might want to check that out)

The 2nd google search result is actually my own thread from 5 years ago, with the same issue including a code-fix. But that was Joomla 1.
http://forum.virtuemart.net/index.php?topic=82282.0

I'm on VirtueMart 3.0.12 Joomla 3.4.8. Maybe those paypal ip's need updating again?

Title: Re: An error with your payment method paypal on your store
Post by: GJC Web Design on March 03, 2016, 12:11:09 PM
the forum search I find as useful as a chocolate ashtray... I use google to search the site

Isn't because your source ips are an array?
Title: Re: An error with your payment method paypal on your store
Post by: carsten888 on March 03, 2016, 15:09:34 PM
QuoteIsn't because your source ips are an array?

I don't think so. Seemed like paypal returned with no ip at all:

2016-02-26 16:29:33 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = .
Title: Re: An error with your payment method paypal on your store
Post by: carsten888 on April 06, 2017, 20:16:47 PM
[a year later]

All of a sudden just about all purchases give this error again. Please update ip array to latest as used by paypal.