PAYONE-GmbH / magento-2

PAYONE Payment Extension for Magento 2
28 stars 56 forks source link

Redirect to shop after Sofort payment issue #384

Closed Leone closed 3 years ago

Leone commented 3 years ago

Hi,

We noticed that the redirect to the shop after the Sofort payment doesn't work.

Reproduction path:

  1. Select the "PAYONE - SOFORT" payment method
  2. Provide IBAN and BIC if necessary
  3. Click on the "place order" button
  4. You should be redirected to the https://www.sofort.com/payment/multipay page
  5. Provide account number and pin, select the account on the next page
  6. Provide the pin and click on the "Next" button

Expected: You should be redirected to the Success page in the Magento

Actual: You got HTTP 404 error, URL is: https://secure.pay1.de/v2/inconn/paynetredirect.jsp?url=https%3A%2F%2Fshop-domain.com%2Fpayone%2Fonepage%2Freturned%2F%3FincrementId%3Dxxx&token=xxx

Page https://secure.pay1.de/v2/inconn/paynetredirect.jsp (without any parameters) also returns a 404 error.

It looks like an issue in the PAYONE platform / API, not in this module but I don't know this logic, maybe some additional parameter should be added.

Remarks: https://secure.pay1.de/v1/inconn/paynetredirect.jsp https://secure.pay1.de/v3/inconn/paynetredirect.jsp

These URLs works, or at least return 400 error (Bad Request) instead of 404.

Leone commented 3 years ago

Hi,

Any news on that?

domeglic commented 3 years ago

Same problem here. It appears to be only in test mode.

jakub-pluciennik commented 3 years ago

I am also having this problem. Magento 2.4.1, Payone 3.2.0.

hreinberger commented 3 years ago

Hi, so I tried recreating this multiple times but had no luck. What's curious to me is the use of this paynetredirect URL. Could it be that all of you use test accounts that have been commissioned before 2017? We have since switched to a new internal connection logic, but some test MIDs might have never been automatically migrated.

The fix for this would be to get in touch with our technical support at tech[dot]support[at]payone.com and letting the colleagues check the connection logic for Sofort. After this, you should see a redirect-hop to https://gpc-sys.pay1.de/gpc/sofort/

hreinberger commented 3 years ago

Update: We tried my theory with an ancient test account we had lying around, that hadn't been migrated to the new sofort connector. We were not only able to reproduce this but switching to the new connector also solved the issue. So, if you see this behaviour, get in touch with our tech support team.

domeglic commented 3 years ago

I wanted to confirm this since our test account is older than 2017 but support didn't reply yet. But sounds resonable.

domeglic commented 3 years ago

Our account that failed before is now working after support changed it.