PAYONE-GmbH / magento-1

PAYONE Payment Extension for Magento 1
22 stars 41 forks source link

Redirecting to home page instead of success page after paying with credit card #199

Closed cryptoso closed 6 years ago

cryptoso commented 6 years ago

Magento version: 1.9.3.8. Payone version: 4.1.4 Checkout version: standard Magento Template: Magento Lumia Installed modules: no

Issue: After paying with credit card user will redirect to home page, it comes no success page. If user order with bank transfer (standard magento payment method), he/she is getting redirect to success page and can see the order number.

fjbender commented 6 years ago

Are there any error logs in the web server or in the var/reports?

cryptoso commented 6 years ago

Hello, no, there are no errors in the logs. Payone technical support says it is every thing ok. The order is also comming through and the user get the confirmation email. Just no redirection to success page. It looks like the error is in compatibility between M1 1.9.3.8 and last PO ext version. We have downgraded the Magento version to 1.9.3.2 and it works fine. Also withe 3rd part checkout extention (firecheckout)

fjbender commented 6 years ago

I can't reproduce this issue in a freshly installed Magento 1.9.3.8, neither in AJAX nor in hosted iframe mode, neither with or without 3D Secure. Can you tell me the transaction ID of one affected transaction (from the API Log in the module)? Was it a 3D Secure transaction?

cryptoso commented 6 years ago

Here for example:

[2018-04-16 13:38:26] INFO - addressaddition=|aid=XXXXX|amount=100|backurl=https://rxxxxxxxxxxx.de/payone_core/checkout_onepage_payment/back/reference/NTk3/|birthday=|cardcvc2=|cardexpiredate=|cardholder=|cardissuenumber=|cardpan=|cardtype=|city=gugu|clearingtype=cc|company=|country=DE|currency=EUR|customerid=|ecommercemode=|email=xxxxxxxxxxxxxxxxxx|encoding=UTF-8|errorurl=https://xxxxxxxxxx.de/payone_core/checkout_onepage_payment/error/reference/NTk3/|firstname=xxxxx|gender=|integrator_name=magento|integrator_version=1.9.3.8|ip=91.xx.xxx.146|key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|language=de|lastname=xxxxxxx|mid=32517|mode=live|narrative_text=|param=|personalid=|portalid=2023571|pseudocardpan=9410004100206309185|reference=100000598|request=authorization|salutation=|solution_name=fatchip|solution_version=4.1.4|state=|street=xxxxxxxx|successurl=https://xxxxxxx.de/payone_core/checkout_onepage_payment/success/reference/NTk3/|telephonenumber=|title=|userid=|vatid=|zip=12345 [2018-04-16 13:38:26] INFO - txid=268177508|userid=126287971|status=APPROVED|rawResponse_status=APPROVED|rawResponse_txid=268177508|rawResponse_userid=126287971

fjbender commented 6 years ago

Okay, I can't really see anything weird there. Possibly it'll only help to debug the shop, I'm afraid.

gndk commented 6 years ago

This is possibly related to a bug in 1.9.3.8 / SUPEE-10570. From what I understand, the behaviour you see (order is created but customer redirected to homepage instead of success page) is the same.

Check out the patch SUPEE-10570v2 (1.9.3.8 only includes the faulty v1 of the patch)

See https://magento.com/security/patches/supee-10570

"Magento was recently informed about an issue with both patch SUPEE-10570 and Magento versions 1.9.3.8/1.14.3.8 that could result in the inability of customers to complete checkout when trying to register during checkout. Magento is now providing an updated patch (SUPEE-10570v2) that no longer causes this issue."

fjbender commented 6 years ago

Thanks @gndk

gndk commented 6 years ago

Just wanted to add something here in case somebody finds this though Google:

I updated to 1.9.3.9 and suddenly had the redirect to homepage instead of success issue again. I found out that the full package for 1.9.3.9 does NOT contain SUPEE-10570v2 and you have to apply this patch again to fix it.

🙄

sprankhub commented 6 years ago

@gndk Piotr mentioned in a chat that SUPEE-10570v2 does not need to be applied to 1.9.3.9. The changes from the v2 patch should be included in 1.9.3.9 without the known issues...

gndk commented 6 years ago

@sprankhub Hm. Maybe the 1.9.3.9 package is wrong then. I downloaded the 1.9.3.9 .zip from magento.com, copied it over my local installation / git-repo, and then deployed. After deployment the old bug reappeared but was fixed by applying the SUPEE-10570v2 patch again.

gndk commented 6 years ago

In the release notes the SUPEE-10570v2 is not listed (but for example for SUPEE-9767v2 the v2 is listed):

Includes patches: SUPEE-5344, SUPEE-5994, SUPEE-6237, SUPEE-6285, SUPEE-6482, SUPEE-6788, SUPEE-7616, SUPEE-7405, SUPEE-7405 v1.1, SUPEE-8788, SUPEE-9652, SUPEE-8167, SUPEE-9767v2, SUPEE-10266, SUPEE-10415, SUPEE-10570, SUPEE-10752

AnuragKhandelwal15 commented 5 years ago

I cannot find v2 for the patch 10752, can anybody help me out!