Le status des commandes reste en "créé"

  • Posts: 202
  • Thank you received: 3
8 years 1 day ago #255935

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.3.1

sorry the original message was in french, i'll do it in english ^^

Hie everybody :)

I've linked my website with the sandbox paypal fine, and the emails notifications work good, BUT when i finish to pay, at the return, the order is not set to "confirmed", the status don't move

I don't understand why, because i set the options right :
Invalid status
Pending status
and Verified status

but the order's status don't move, even if i pay the order with paypal and paypal say "it's paid"...

how to do this automatically please ?

thx


---
Joachim


Bonjour à tous :)

Voilà, j'ai bien relié mon site au bac à sable de paypal, les notifications emails marchent bien, mais au retour de la transaction, la commande créée reste en mode "créée" et n'est pas passée en "confirmée"

Dois je faire à la main le passage de status à "confirmée" ? en remplissant une url retour serveur/serveur ?

Pourtant j'ai bien rempli les options dans la config du plugin paypal :

statut invalide : "annulée"
statut en attente : "créée"
statut vérifié : "confirmée"

Je ne comprends pas ce qui cloche... help please ?

Merci :)




Joachim

Last edit: 8 years 1 day ago by pulsarinformatique.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 1 day ago #255942

Hi,

The orders not being confirmed after the payment can be linked to a lot of different causes.
We actually have a documentation which lists the different things and what to do and where to look to find clues on that:
www.hikashop.com/support/documentation/i...or.html#notification

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
8 years 1 day ago #255967

Hie

Well, i can see my log file isn't exist, even if i set debug mode in true, and in the file config, the value of the path file is media/com_hikashop/upload/safe/logs/report_554382324.log


the validation mode is false, so the order have to normally change when the order is pay...


i've just made a chmod -R 777 at my httpdocs ... and my .htaccess is correct i think...

help me please !

thx :)

Joachim

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
8 years 17 hours ago #256010

any answer please ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 15 hours ago #255973

Hi,

Regarding the log being empty, download the install package on our website and install it on yours and then try again a payment with the debug mode turned on.
Also, check on the access log of your server as explained in the documentation link I gave you and check the other points mentioned there.

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
7 years 11 months ago #256264

Hi

i've made a print_r of the $vars i send to paypal, on the plugin paypal, in the onAfterOrderConfirm function

Array
(
    [cmd] => _ext-enter
    [redirect_cmd] => _cart
    [upload] => 1
    [business] => info@pulsar-informatique.com
    [receiver_email] => info@pulsar-informatique.com
    [invoice] => 12
    [currency_code] => EUR
    [return] => http://hikashop.test-pulsar.com/index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=12&Itemid=102
    [notify_url] => http://hikashop.test-pulsar.com/index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=fr&Itemid=102
    [cancel_return] => http://hikashop.test-pulsar.com/index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id=12&Itemid=102
    [undefined_quantity] => 0
    [test_ipn] => 1
    [shipping] => 0
    [no_shipping] => 1
    [no_note] => 1
    [charset] => utf-8
    [rm] => 2
    [bn] => HikariSoftware_Cart_WPS
    [lc] => FR
    [amount_1] => 65
    [item_name_1] => Prix total
)

do you see any error please ? is there here enough params to say to paypal to change the status of the order at the end ?

thx
Joachim

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
7 years 11 months ago #256304

I understand why my log file isn't exist...

the notification is call with this adress : index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal

I've made a debug_print_backtrace on the function onPaymentNotification of the paypal plugin AND i've found the first plugin called with this url : it's the plugin system plugins/system/hikashoppayment/hikashoppayment.php

the processPaymentNotification() is called by the onAfterInitialise(). IN this processPaymentNotification() we do THIS :

JRequest::setVar('hikashop_payment_notification_plugin', true);

		ob_start();
		$payment = JRequest::getCmd('notif_payment', @$_REQUEST['notif_payment']);
		$data = hikashop_import('hikashoppayment', $payment);

		if(!empty($data)) {
			$trans = hikashop_get('helper.translation');
			$cleaned_statuses = $trans->getStatusTrans();
			$data = $data->onPaymentNotification($cleaned_statuses);
		}
		$dbg = ob_get_clean();

		if(!empty($dbg)) {//WRITE ON THE LOG PAIEMENT FILE

BUT the $dbg is empty when i call the url, because $dbg call the plugin onPaymentNotification() who receive the data send by paypal :) but i don't receive any data... SO if $dbg is empty, the log file don't exist...

BUT i don't understand why i don't receive the data from paypal

any help please ?

thx

Joachim

Last edit: 7 years 11 months ago by pulsarinformatique.

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
7 years 11 months ago #256312

Ok, now, the log file is created \o/ - the config hikashop wasn't good :) i see it when i was reading the code :)

All work perfectly when i cancel an order on the paypal page : the order status is automatically "cancel"

BUT when i pay the order (on the sandbox paypal) the order status still "Pending" - but on the sandbox it's write "you've successfully paid"
and when i see the log file i see this :

Array
(
    [option] => com_hikashop
    [ctrl] => checkout
    [task] => notify
    [notif_payment] => paypal
    [tmpl] => component
    [lang] => fr
    [Itemid] => 102
    [mc_gross] => 16.00
    [invoice] => 999998
    [protection_eligibility] => Ineligible
    [item_number1] => 
    [payer_id] => QT5UYBFJXH4CG
    [tax] => 0.00
    [payment_date] => 07:39:45 Nov 28, 2016 PST
    [payment_status] => Pending
    [charset] => windows-1252
    [mc_shipping] => 0.00
    [mc_handling] => 0.00
    [first_name] => jojo
    [notify_version] => 3.8
    [custom] => 
    [payer_status] => verified
    [num_cart_items] => 1
    [mc_handling1] => 0.00
    [verify_sign] => AIkKNboJiyuxWLOHUlzTd3lpqCSxAGTzbluZg4GK.WeNDtAvX7HmODZH
    [payer_email] => jojo-buyer@pulsar-informatique.com
    [mc_shipping1] => 0.00
    [tax1] => 0.00
    [txn_id] => 2FR804903N015945L
    [payment_type] => instant
    [last_name] => thibout
    [item_name1] => Prix total
    [receiver_email] => info@pulsar-informatique.com
    [quantity1] => 1
    [pending_reason] => unilateral
    [txn_type] => cart
    [mc_gross_1] => 16.00
    [mc_currency] => EUR
    [residence_country] => FR
    [test_ipn] => 1
    [transaction_subject] => 
    [payment_gross] => 
    [ipn_track_id] => e2162be475c05
    [hikashop_payment_notification_plugin] => 1
)
Array
(
    [option] => com_hikashop
    [ctrl] => checkout
    [task] => notify
    [notif_payment] => paypal
    [tmpl] => component
    [lang] => fr
    [Itemid] => 102
    [mc_gross] => 16.00
    [invoice] => 999998
    [protection_eligibility] => Ineligible
    [item_number1] => 
    [payer_id] => QT5UYBFJXH4CG
    [tax] => 0.00
    [payment_date] => 07:39:45 Nov 28, 2016 PST
    [payment_status] => Pending
    [charset] => windows-1252
    [mc_shipping] => 0.00
    [mc_handling] => 0.00
    [first_name] => jojo
    [notify_version] => 3.8
    [custom] => 
    [payer_status] => verified
    [num_cart_items] => 1
    [mc_handling1] => 0.00
    [verify_sign] => AIkKNboJiyuxWLOHUlzTd3lpqCSxAGTzbluZg4GK.WeNDtAvX7HmODZH
    [payer_email] => jojo-buyer@pulsar-informatique.com
    [mc_shipping1] => 0.00
    [tax1] => 0.00
    [txn_id] => 2FR804903N015945L
    [payment_type] => instant
    [last_name] => thibout
    [item_name1] => Prix total
    [receiver_email] => info@pulsar-informatique.com
    [quantity1] => 1
    [pending_reason] => unilateral
    [txn_type] => cart
    [mc_gross_1] => 16.00
    [mc_currency] => EUR
    [residence_country] => FR
    [test_ipn] => 1
    [transaction_subject] => 
    [payment_gross] => 
    [ipn_track_id] => e2162be475c05
)


stdClass Object
(
    [order_id] => 999998
    [order_billing_address_id] => 1
    [order_shipping_address_id] => 1
    [order_user_id] => 1
    [order_status] => created
    [order_type] => sale
    [order_number] => D9P9E9J9E98
    [order_created] => 1480347548
    [order_modified] => 1480347548
    [order_invoice_id] => 0
    [order_invoice_number] => 
    [order_invoice_created] => 0
    [order_currency_id] => 1
    [order_currency_info] => O:8:"stdClass":4:{s:13:"currency_code";s:3:"EUR";s:13:"currency_rate";s:7:"1.00000";s:20:"currency_percent_fee";s:4:"0.00";s:17:"currency_modified";s:10:"1480347259";}
    [order_full_price] => 16.00000
    [order_tax_info] => Array
        (
            [] => stdClass Object
                (
                    [tax_namekey] => 
                    [tax_rate] => 0.00000
                    [tax_amount] => 0
                )

        )

    [order_discount_code] => 
    [order_discount_price] => 0.00000
    [order_discount_tax] => 0.00000
    [order_payment_id] => 4
    [order_payment_method] => paypal
    [order_payment_price] => 0.00000
    [order_payment_tax] => 0.00000
    [order_payment_params] => 
    [order_shipping_id] => 2
    [order_shipping_method] => manual
    [order_shipping_price] => 5.00000
    [order_shipping_tax] => 0.00000
    [order_shipping_params] => stdClass Object
        (
            [prices] => Array
                (
                    [2@0] => stdClass Object
                        (
                            [price_with_tax] => 5.00000
                            [tax] => 0
                        )

                )

        )

    [order_partner_id] => 0
    [order_partner_price] => 0.00000
    [order_partner_paid] => 0
    [order_partner_currency_id] => 0
    [order_ip] => 131.117.203.237
    [order_site_id] => 
    [comment] => 
    [deliverydate] => 
)


Array
(
    [scheme] => https
    [host] => www.sandbox.paypal.com
    [path] => /cgi-bin/webscr
    [query] => 
    [port] => 443
    [host_socket] => ssl://www.sandbox.paypal.com
)


POST /cgi-bin/webscr HTTP/1.1
User-Agent: PHP/5.6.24-0+deb8u1
Referer: http://hikashop.test-pulsar.com/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=fr&Itemid=102
Server: Apache/2.4.10 (Debian)
Host: www.sandbox.paypal.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 912
Accept: */*
Connection: close



option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=fr&Itemid=102&mc_gross=16.00&invoice=999998&protection_eligibility=Ineligible&item_number1=&payer_id=QT5UYBFJXH4CG&tax=0.00&payment_date=07%3A39%3A45+Nov+28%2C+2016+PST&payment_status=Pending&charset=windows-1252&mc_shipping=0.00&mc_handling=0.00&first_name=jojo&notify_version=3.8&custom=&payer_status=verified&num_cart_items=1&mc_handling1=0.00&verify_sign=AIkKNboJiyuxWLOHUlzTd3lpqCSxAGTzbluZg4GK.WeNDtAvX7HmODZH&payer_email=jojo-buyer%40pulsar-informatique.com&mc_shipping1=0.00&tax1=0.00&txn_id=2FR804903N015945L&payment_type=instant&last_name=thibout&item_name1=Prix+total&receiver_email=info%40pulsar-informatique.com&quantity1=1&pending_reason=unilateral&txn_type=cart&mc_gross_1=16.00&mc_currency=EUR&residence_country=FR&test_ipn=1&transaction_subject=&payment_gross=&ipn_track_id=e2162be475c05&cmd=_notify-validate

HTTP/1.1 200 OK
Date: Mon, 28 Nov 2016 15:39:54 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=iIYVy3guLTAdPw_zl8n6xa0ZyRgOPNWIrD6F5s8vK2JC3ZvFX0eixzIx0wCLMUATUvArLSAX_f-nTJf4upMoWBvXxXer7rPTQIaniwiiHIi42Vz2TZGFcjy0GGgdCuqfpeEu4iwVOZTEDFFbTq-dyeicoBP1fkohhO6GXz_IFty9aJazzUUwRxk2QS6X38ByJ02gyjyvMH47ouii6Ht9R1A_OHt8aqfvDYxSgoK_GsZ2eVXy1YOtunejBO03ZRgmE3q9ZhMs7LMwq09YUJuieCB_L0pd1sIG4VZzDXBJjWfPdx4yFa9YAl-_oO0-AHcsjQrVgRbvcD2fn5JCW5FW0zmJIrYO0lB5pIcRc7HQwSkmyUsc_lb6VyOFomg23zSn8zNESSKz1f9H0z6oRO-xlLfjiqdwI2i-MkcNkDAB5WmWtCbwTd4Asa3XN7a; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Thu, 26-Nov-2026 15:39:55 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Wed, 28-Nov-2018 15:39:55 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.72.108.11.1480347594720126; path=/; expires=Wed, 21-Nov-46 15:39:54 GMT
Vary: Accept-Encoding,User-Agent
Connection: close
HTTP_X_PP_AZ_LOCATOR: sandbox.slc
Paypal-Debug-Id: 7873108eab06f
Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.WEB.1%26silo_version%3D1880%26app%3Dappdispatcher%26TIME%3D3394190424%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Mon, 28 Nov 2016 16:09:55 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Strict-Transport-Security: max-age=14400
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

8
VERIFIED
0



PayPal transaction id: 2FR804903N015945L

please tell me what happens ?

thx

ps : there is my config

Joachim

Attachments:
Last edit: 7 years 11 months ago by pulsarinformatique.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 11 months ago #256314

Hi,

As the log says, the payment notification received by HikaShop says that the payment is pending.
This means that you have the "enable validation mode" setting activated in your payment method settings page and because of that, the payments are not automatically validated when they are made. You need to validate them manually.
That's the most common reason.
But it can also be because other reasons independent from HikaShop. Here is a list you can review in your PayPal merchant account IPN history:
help.ticketbud.com/hc/en-us/articles/216...al-Payments-Pending-

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
7 years 11 months ago #256358

Hie, thanks to answer :)

just to be sure, my config is good now ?



my paypal account test is not pro, could it be that ?

thx

Attachments:
Last edit: 7 years 11 months ago by pulsarinformatique.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 11 months ago #256395

Hi,

The configuration is good yes.
It might be. But I would recommend you to check your IPN history in your PayPal merchant account in order to know the reason of the problem or contact the PayPal support. They should be able to tell you what's the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
7 years 11 months ago #256450

ok, thx, I will be back to you on this as soon as i've the response :)

thx

Joachim

Please Log in or Create an account to join the conversation.

  • Posts: 202
  • Thank you received: 3
7 years 11 months ago #256647

ok, they say me as i'm with the sandbox paypal, the statut always "pending"

So, when i will be in the real paypal, the return of the statut will be fine :)

thx

Joachim

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum