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

Paypal payment not updating order status when payment is done

Started by daviddemarchi, November 19, 2014, 14:52:42 PM

Previous topic - Next topic

daviddemarchi

Hi Thx u so much for this beautifull support place! i have configured paypal ok! when the payment is done via paypal, the order status is not changed even thoug paypal sne du back with ok messsage!
Been reading many tuts here about this but nothing helped me out.
Im using PaypalStandard
VM 2.6.12.2
Joomla 2.5.27

What should i do i saw a post here with no solution on this matter, as i told you even the payment is confirmed by paypal and send you back to my site and showing u the order number and so on , the status of the order is not changed. Please help me!!! add screenshots of my config



[attachment cleanup by admin]

GJC Web Design

In standard payapl the response that takes you back to the confirmed order/order number/thank you on your site is NOT the response that updates your order status

It is a separate response sent from paypal to  index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification in a background POST.
It can be quite delayed - have seen up to 20mins or longer

Switch on the two debug options in your PP plugin and do some transactions to see if anything obvious is wrong
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

daviddemarchi

this is the log for one transaction made using the plug in in debug mode
[19-Nov-2014 13:14:20 America/Chicago] PHP Notice:  Undefined property: stdClass::$country in /home/XXXX/public_html/plugins/user/oseuser/oseuser.php on line 259
[19-Nov-2014 13:14:20 America/Chicago] PHP Notice:  Undefined property: stdClass::$state in /home/XXXX/public_html/plugins/user/oseuser/oseuser.php on line 270
[19-Nov-2014 13:30:19 America/Chicago] PHP Notice:  Undefined property: JUser::$userInfo in /home/XXXX/public_html/components/com_virtuemart/views/user/view.html.php on line 424
[19-Nov-2014 13:30:21 America/Chicago] PHP Notice:  Undefined property: JUser::$userInfo in /home/XXXX/public_html/components/com_virtuemart/views/user/view.html.php on line 424
[19-Nov-2014 13:30:21 America/Chicago] PHP Notice:  Undefined property: VirtuemartViewUser::$orderDetails in /home/XXXX/public_html/components/com_virtuemart/helpers/shopfunctionsf.php on line 385
[19-Nov-2014 13:30:21 America/Chicago] PHP Notice:  Trying to get property of non-object in /home/XXXX/public_html/components/com_virtuemart/helpers/shopfunctionsf.php on line 385
[19-Nov-2014 13:30:21 America/Chicago] PHP Notice:  Undefined property: VirtuemartViewUser::$orderDetails in /home/XXXX/public_html/components/com_virtuemart/helpers/shopfunctionsf.php on line 386
[19-Nov-2014 13:30:21 America/Chicago] PHP Notice:  Trying to get property of non-object in /home/XXXX/public_html/components/com_virtuemart/helpers/shopfunctionsf.php on line 386
[19-Nov-2014 13:30:21 America/Chicago] PHP Notice:  Undefined property: VirtuemartViewUser::$orderDetails in /home/XXXX/public_html/components/com_virtuemart/helpers/shopfunctionsf.php on line 386
[19-Nov-2014 13:30:21 America/Chicago] PHP Notice:  Trying to get property of non-object in /home/XXXX/public_html/components/com_virtuemart/helpers/shopfunctionsf.php on line 386
[19-Nov-2014 13:33:07 America/Chicago] PHP Warning:  json_encode() [<a href='function.json-encode'>function.json-encode</a>]: Invalid UTF-8 sequence in argument in /home/XXXX/public_html/plugins/vmpayment/paypal/paypal.php on line 764
[19-Nov-2014 13:33:07 America/Chicago] PHP Notice:  Trying to get property of non-object in /home/XXXX/public_html/components/com_virtuemart/helpers/coupon.php on line 132
[19-Nov-2014 13:33:07 America/Chicago] PHP Notice:  Undefined index: cols in /home/XXXX/public_html/libraries/tcpdf/tcpdf.php on line 23291
[19-Nov-2014 13:33:07 America/Chicago] PHP Notice:  Undefined index: cols in /home/XXXX/public_html/libraries/tcpdf/tcpdf.php on line 23293
[19-Nov-2014 13:33:07 America/Chicago] PHP Warning:  Division by zero in /home/XXXX/public_html/libraries/tcpdf/tcpdf.php on line 23293
[19-Nov-2014 13:33:07 America/Chicago] PHP Notice:  Undefined index: cols in /home/XXXX/public_html/libraries/tcpdf/tcpdf.php on line 23295
[19-Nov-2014 13:33:07 America/Chicago] PHP Warning:  array_fill() [<a href='function.array-fill'>function.array-fill</a>]: Number of elements must be positive in /home/XXXX/public_html/libraries/tcpdf/tcpdf.php on line 23295


still not processing the order to confirmed when the payment is done.

GJC Web Design

wrong debug - wrong log

Switch on the two debug options in your PP plugin

log will be in folder  /log  call paypal something .log

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

daviddemarchi

Sorry for that but im new to this in VM
i got this folder with that file public_html/logs/paypal.2.log.php
and inside the file got this

2014-11-19 19:31:09 MESSAGE plgVmConfirmedOrder: order number: e71c037
2014-11-19 19:31:09 DEBUG PayPal request:: Array
(
    [cmd] => _ext-enter
    [redirect_cmd] => _xclick
    [paymentaction] => sale
    [upload] => 1
    [business] => Private Info (replaced by me)
    [receiver_email] => Private Info (replaced by me)
    [order_number] => e71c037
    [invoice] => e71c037
    [custom] => 52a35353c7886d771efbb5bf54399f0d
    [currency_code] => MXN
    [address_override] => 0
    [first_name] =>
    [last_name] =>
    [address1] =>
    [address2] =>
    [zip] =>
    [city] =>
    [state] =>
    [country] =>
    [email] => Private Info (replaced by me)
    [night_phone_b] =>
    [return] => http://www.xxxx.net/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=e71c037&pm=2&Itemid=112&lang=
    [notify_url] => http://www.xxxx.net/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&lang=
    [cancel_return] => http://www.xxxx.net/index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&on=e71c037&pm=2&Itemid=112&lang=
    [rm] => 2
    [bn] => VirtueMart_Cart_PPA
    [no_shipping] => 1
    [no_note] => 1
    [cpp_header_image] => http://www.XXXXXXX/images/stories/virtuemart/payment/index.html
    [item_name] => Nº de pedido: e71c037
    [amount] => 1
)

2014-11-19 19:33:06 DEBUG PaymentNotification, paypal_data:: Array
(
    [mc_gross] => 1.00
    [invoice] => e71c037
    [protection_eligibility] => Ineligible
    [payer_id] => Private Info (replaced by me)
    [tax] => 0.00
    [payment_date] => 11:32:23 Nov 19, 2014 PST
    [payment_status] => Completed
    [charset] => windows-1252
    [first_name] => DAVID
    [mc_fee] => 1.00
    [notify_version] => 3.8
    [custom] => 52a35353c7886d771efbb5bf54399f0d
    [payer_status] => verified
    [business] => Private Info (replaced by me)
    [quantity] => 1
    [verify_sign] => AP37U7gPUL7wW.bhj7gUYHr1YqBVAjmHTjhBzwpxF0SGm9G.Niry0bSB
    [payer_email] => Private Info (replaced by me)
    [txn_id] => 7CX213390D767794F
    [payment_type] => instant
    [payer_business_name] => Private Info (replaced by me)
    [last_name] => Private Info (replaced by me)
    [receiver_email] => Private Info (replaced by me)
    [payment_fee] =>
    [receiver_id] => Private Info (replaced by me)
    [txn_type] => web_accept
    [item_name] => Nº de pedido: e71c037
    [mc_currency] => MXN
    [item_number] =>
    [residence_country] => MX
    [handling_amount] => 0.00
    [transaction_subject] => 52a35353c7886d771efbb5bf54399f0d
    [payment_gross] =>
    [shipping] => 0.00
    [ipn_track_id] => 1b6c798f7a289
)

2014-11-19 19:33:06 DEBUG PaymentNotification, order_number:: e71c037
2014-11-19 19:33:06 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 2
2014-11-19 19:33:06 DEBUG checkPaypalIps PRODUCTION: Array
(
   
  • => 172.230.152.7
        [1] => 173.0.81.33
        [2] => 173.0.81.1
        [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
    )

    2014-11-19 19:33:06 DEBUG checkPaypalIps REMOTE ADDRESS: 173.0.81.1
    2014-11-19 19:33:06 DEBUG validateIpnContent: valid_ipn: VERIFIED
    2014-11-19 19:33:06 DEBUG payment_status: Completed
    2014-11-19 19:33:06 DEBUG plgVmOnPaymentNotification: order_number:e71c037 new_status:C

GJC Web Design

but it is fine

see

2014-11-19 19:33:06 DEBUG checkPaypalIps REMOTE ADDRESS: 173.0.81.1
2014-11-19 19:33:06 DEBUG validateIpnContent: valid_ipn: VERIFIED
2014-11-19 19:33:06 DEBUG payment_status: Completed
2014-11-19 19:33:06 DEBUG plgVmOnPaymentNotification: order_number:e71c037 new_status:C
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

daviddemarchi

Well but the order in vm is not updated to confirmed what can this be? Thx u so much for quick response on this! im worried.

GJC Web Design

Without digging in your site no idea --

it clearly states:

order_number:e71c037 new_status:C

C is confirmed
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation