Paypal invalid transaction - all transactions

  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 4 months ago #273574

-- url of the page with the problem -- : www.portal-gestao.com
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 5.6.30
-- Error-message(debug-mod must be tuned on) -- : Paypal invalid transaction

Hello,
As of one week, all orders paid via Paypal are being cancelled.
I check my Paypal account and the money is in, but Hikashop cancels the order with the message "Invalid Transaction".
I haven't touched the Paypal config in HS for two years, since I first installed it, so I can't figure out what's wrong.
Can you help?
Thank you.

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

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
7 years 4 months ago #273593

I have the same issue.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 4 months ago #273576

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 4 months ago #273637

Hello Jerome,
I had already read that but there's no indication how to solve the problem.

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

  • Posts: 13
  • Thank you received: 2
  • Hikashop Essential
7 years 4 months ago #273650

Same issue here. Latest Joomla and Hikashop.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #273653

Hi,

Activate the debug setting of the payment method and after the next invalid transaction email notification you'll get, look at the payment log available in the HikaShop configuration. It will have more information on what's going on.

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

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
7 years 4 months ago #273681

I've done exactly that and went through the whole log file and it looks fine to me. The transaction IDs match up, the requests from the shop to Paypal and the other way around look fine, too. I updated the allowed IP adresses in the payment plugin prior to this and still the debug file says invalid transaction. Considering that everything worked fine until about 5 days ago and without any changes from our end, I expect Paypal to having changed something which the plugin now fails on. If you need the debug file, let me know.

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

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
7 years 4 months ago #273698

So, Paypal deems the valid notification confirmation request to be invalid. I can't find the reason for that. Can you please check this again? I've looked through a bunch of possible issues, but had no luck so far to find the issue. I would guess that the issue is related to the filtering at the beginning of the onPaymentNotification method.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 4 months ago #273684

Hello,

Regarding your description ; I can also bet that Paypal changed something in their behavior without any kind of notice or else.
If you can provide your debug log via email ; it would be great so we will be able to analyze it and compare it with some of our own debug logs.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
7 years 4 months ago #273699

I send you a mail over the contact us form.

The following user(s) said Thank You: Jerome

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

  • Posts: 167
  • Thank you received: 11
7 years 4 months ago #273704

Same problem on our side after upgarde to J 3.7.3 BUT not on all the transactions...some are ok "completed" others (30/50%) are invalid. The website owner say that the amount arrive on their Paypal account!
Ps : our next website version will use Paybox.

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
7 years 4 months ago #273739

Same with my 4 websites with Hikashop.
Can you please fix this issue or i will be forced to change hikashop...

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
7 years 4 months ago #273743

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 4 months ago #273747

Hello,

Because the Paypal plugin haven't change a lot lately, the current issues seems to come to Paypal side.
The fact that some transactions are confirmed and for people the validation is working sometimes (and some not) does not indicate a "fixed" issue.

For sure, if Paypal could explain what is the source of the issue ; if there is a problem in their side for the IPN validation.. or else ; it would be great.

Now, I wanted to perform a little test just to clarify if we might missed things.
So I read a lot of the new IPN documentation :
developer.paypal.com/docs/classic/ipn/in...tion-guide/IPNIntro/
And I also read the code from the Paypal github :
github.com/paypal/ipn-code-samples/blob/...er/php/PaypalIPN.php
Thus I decided to implement the official Paypal IPN code into the HikaShop plugin.

File Attachment:

File Name: plg_hikash...ypal.zip
File Size:10 KB


That plugin contains a new option called "New IPN Check" which use the code based on the Paypal Github (but with "writeToLog" instead of the "throw exception".
Because it's very late and I'm on my laptop in a small room without all I need to perform a bunch of test ; I'm sorry but I can just give you the plugin like that.
Please be sure that we will perform a lot of test in our side as soon as possible.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Attachments:

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

  • Posts: 179
  • Thank you received: 0
7 years 4 months ago #273767

we just need to update plugin ?

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

  • Posts: 30
  • Thank you received: 1
  • Hikashop Business
7 years 4 months ago #273771

I just updated the plugin, enabled the new IPN method and now it works. Thank you for this. I hope that you can investigate this further and provide a long term fix soon. ;-)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #273778

Hello,

In some logs we saw that the Paypal answer were not in UTF8 charset.
If that's the case, please follow these instructions:
stackoverflow.com/questions/26619982/ipn...rect-charset-in-post

Regards,

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

  • Posts: 81
  • Thank you received: 0
7 years 4 months ago #274423

Can you also do a plugin fix for the PAYPAL HOSTED Version.

We are not using PAYPAL PRO as the payment method but their HOSTED version.

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

  • Posts: 167
  • Thank you received: 11
7 years 4 months ago #274435

Hello,
Thanks Jerome for your work :) and for the plugin on your previous post (we did not yet use it...):
www.hikashop.com/media/kunena/attachment...oppayment_paypal.zip
We still have on one website using the Paypal payment the pb. This website have as host provider Strato ( located in Germany). If I look here downdetector.com/status/paypal/map/ the germany area is red still 2 weeks.
We didn't yet install your new paypal plugin and we have around 40 % of transaction with the error message www.hikashop.com/index.php?option=com_up...pal-error#invalidtnx
The payment is ok on the Paypal account and we have to modify manualy the order status from created to confirmed...
So here are some questions about your plugin ( www.hikashop.com/media/kunena/attachment...oppayment_paypal.zip ) :
1/ Is it a stable and "final" version ? (You wrote "Please be sure that we will perform a lot of test in our side as soon as possible.").
2/How can we use it? Do we have just to install it (and enabled the new IPN), via the joomla extension instalator and it'll overide the actual Paypal Plugin? Or do we have to delete or desactivate the old/native Paypal Plugin and after install the new one and remake the paypal configuration/user account parameters?
3/Do this plugin work fine with all the Hikashop version (starter, essential, business, 2.6.4 , 3.11 etc...)?
Thanks for your help
Very best regards

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #274440

HI,

@herb200mph :
A fix for the Paypal hosted plugin ?
I'm sorry but I'm not sure I understand you because there is no such plugin in our list (or I missed something).
Are you talking about the standard PayPal plugin ?
The plugin patch Jerome proposed is not for PayPal Pro, but for PayPal standard:
www.hikashop.com/forum/payment-methods/8...sactions.html#273747
So it might what you're looking for.

@gil :
1. We will include a better version of the plugin which will switch automatically between both modes instead of having to change the setting in the payment method. But the principle is the same. That will be in the next version of HikaShop to be released in August.
The tests we performed were conclusive so you can directly use that plugin on your website.

2. Install it and turn on the option and you're good to go. If you notice a problem, you can always turn off that option and the plugin will work exactly like before.

3. Yes. It will work with all the versions/editions.
The only difference between what's by default and that plugin is that the validation of the IPN is handled by the official PayPal IPN library that they made available recently instead of the code that we were using so far if you activate that option. All the rest is the same so there is no code which would break.

The following user(s) said Thank You: gil

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

Time to create page: 0.157 seconds
Powered by Kunena Forum