VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: daviddemarchi on November 19, 2014, 14:52:42 PM

Title: Paypal payment not updating order status when payment is done
Post by: daviddemarchi on November 19, 2014, 14:52:42 PM
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]
Title: Re: Paypal payment not updating order status when payment is done
Post by: GJC Web Design on November 19, 2014, 17:52:39 PM
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
Title: Re: Paypal payment not updating order status when payment is done
Post by: daviddemarchi on November 19, 2014, 20:48:07 PM
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.
Title: Re: Paypal payment not updating order status when payment is done
Post by: GJC Web Design on November 19, 2014, 21:55:46 PM
wrong debug - wrong log

Switch on the two debug options in your PP plugin

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

Title: Re: Paypal payment not updating order status when payment is done
Post by: daviddemarchi on November 19, 2014, 22:03:23 PM
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
(
   
Title: Re: Paypal payment not updating order status when payment is done
Post by: GJC Web Design on November 19, 2014, 22:31:43 PM
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
Title: Re: Paypal payment not updating order status when payment is done
Post by: daviddemarchi on November 19, 2014, 22:41:03 PM
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.
Title: Re: Paypal payment not updating order status when payment is done
Post by: GJC Web Design on November 19, 2014, 23:10:52 PM
Without digging in your site no idea --

it clearly states:

order_number:e71c037 new_status:C

C is confirmed