joseconti / woo-redsys-gateway-light

Esta es la versión Light del plugin oficial de Redsys en WooCommerce.com
4 stars 0 forks source link

Not passing completed order #1

Open bradholmes-studio opened 6 years ago

bradholmes-studio commented 6 years ago

currently have an issue with the gateway no passing back payment result so orders sit at pending payment all the time

joseconti commented 6 years ago

Hi,

Is your website under Lets Encrypt certification?

If yes, you need to activate SNI compatibility and ensure that nothing is redirecting all connections to https.

bradholmes-studio commented 6 years ago

yes lets encrypt and sni is active i will continue to test

bradholmes-studio commented 6 years ago

still no joy with this none of our orders are passing back payment notification sni is on but we are forcing ssl any advice?

joseconti commented 6 years ago

Hi,

You have to check if you are forcing https at .htaccess or maybe, if your hosting provider is forcing it. ex, SiteGround has an option for forcing https, so you need to disable it at Let's Encrypt settings.

bradholmes-studio commented 6 years ago

We have changed our ssl turned off any forcing and also spoke to host and no forcing is happening

joseconti commented 6 years ago

Can you check at Redsys website if there is an error connecting to your website?

Recently I found a problem on other website that have been using Wordfence Firewall and the firewall was blocking the Redsys IP.

bradholmes-studio commented 6 years ago

Hi jose we are really struggling we this due to none of us speaking spanish is it possible that you can help

harryderouich commented 6 years ago

Hi Jose, I'm working on this with Brad. Are you able to confirm the Redsys IP? Struggling to find it with the limited documentation we have.

joseconti commented 6 years ago

Hi, I'm sorry for the delay, but there were a lot of work with the RGDP. I don't know all Redsys IPs, but one is 195.76.9.187

Few days ago, another user has a problem like this, and was because Wordfence Firewall was blocking this IP.

harryderouich commented 6 years ago

Hi Jose, not a problem.

We've asked our server company to check for any IP blocks in the entire 195.76.9.1XX and 195.76.9.2XX range (we narrowed it down to Redsys using these ranges), and they confirmed there is nothing blocked.

I've also updated all plugins on our site to the latest version, and the payment notification is still not being sent back.

Do we have to coordinate with Redsys to enable IPN for our site? Or do we just put the credentials in and it should work instantly? We haven't communicated anything to Redsys other than retrieving the credentials.

If it matters, we are on a multisite installation and using the Free version of the plugin.

Thanks in advance!

joseconti commented 6 years ago

At RedSys website, yo need to set “http notificatio” or “email + http notification”. Normally that is by default.

The free & WooCommerce.com versión works in the same way, so you don’t need to add the IPN at RedSys website.

The plugin works fine in a Multisite installation.

harryderouich commented 6 years ago

Hi Jose.

I logged in to their Redsys system and checked the notification logs, each time we tried to make a payment we got the following error:

Server returned HTTP response code: 403 for URL: http://www.hrhroadtrip.com/?wc-api=WC_Gateway_redsys

Any ideas what might be causing this?

harryderouich commented 6 years ago

Update: We managed to get this working, below is the response from our server support in case it helps:

"By default, our platform security profile blocks API calls that use the Java User Agent. I was able to activate the User Agent by customizing your install server configuration file."

joseconti commented 6 years ago

Ouh, yes, Redsys use Java User Agent for callbacks. Thanks a lot for the update :)