Viewing 15 replies - 16 through 30 (of 36 total)
  • Plugin Author Claudio Sanches

    (@claudiosanches)

    @jpisanu maybe some redirection because you are using SSL.
    But maybe with this URL should work fine.

    Plugin Author Claudio Sanches

    (@claudiosanches)

    jeje, oki, sorry.. I’m new!

    Thread Starter jpisanu

    (@jpisanu)

    Yes Claudio, I was starting to think that SSL could be causing some trouble. I’m using Cloudflare’s Flexibe, do you know if that could be a problem?

    Plugin Author Claudio Sanches

    (@claudiosanches)

    @fitar sorry, but I don’t make the rules here ??

    Plugin Author Claudio Sanches

    (@claudiosanches)

    @jpisanu well, CloudFlare can block some requests, specially POST, some query strings or user-agents.

    Thread Starter jpisanu

    (@jpisanu)

    Ok, I was checking with them how to whitelist MP IPs but they don’t support range IP addresses so I will have to write one by one.

    I will first try with that new URL though, and if that doesn’t work I’ll let you know and I will take some other actions.

    Thanks for your help Claudio.

    Thread Starter jpisanu

    (@jpisanu)

    Claudio,

    One thing that I found out is that when I change the IPN url, and MP does the test, I get the request from MP server:

    216.33.196.4 - - [27/Sep/2016:10:31:11 -0400] "POST /wc-api/WC_MercadoPago_Gateway/?topic=payment&id=1234554244 HTTP/1.0" 200 2

    But when I make a purchase either on sandbox or production, that request never arrives.

    With this I mean that Cloudflare can’t be blocking them, otherwise that test notification would never arrive. If I’d have an SSL redirect it would not work either. And I’m getting a correct 200 status.

    Any thoughts on this?

    Plugin Author Claudio Sanches

    (@claudiosanches)

    @jpisanu what shows in the plugin’s log?
    This is request is from the MercadoPago URL test?
    I’m not sure if they use the same IP address and user-agent.

    Thread Starter jpisanu

    (@jpisanu)

    Claudio, they sent like an old Mercado Libre thing as test each time I change the URL on their settings.

    Here’s the log:

    https://pastebin.com/QzQkZd05

    Plugin Author Claudio Sanches

    (@claudiosanches)

    @jpisanu working now?

    Thread Starter jpisanu

    (@jpisanu)

    Hi Claudio, I get that when I do a test, not when purchases are made.

    I don’t know what else to do at this point. I suppose I will move the site to a new server or something, I ran out ideas.

    Plugin Author Claudio Sanches

    (@claudiosanches)

    Well, on tests MercadoPago maybe is using a different user-agent.
    Have you checked your .htaccess or nginx config if is blocking something?

    Thread Starter jpisanu

    (@jpisanu)

    Hi Claudio,
    I’m updating the ticket to let you know the outcome of my investigation about this issue.

    I ran the following tests until I found the issue, all of them were done under a test buyer accound and test store owner account and in sandbox mode.

    (when I say passed or failed I mean that on the log I get the IPN reaching my site back with the order update).

    – Created a demo store on the same server under a different domain: test ok.
    – Added cloudflare to that domain: test ok.
    – Switched the site to https address instead of http: test failed (MP server not even reaching my site).

    On the real site:
    – Bought my own SSL Certificate, set the Cloudflare to FULL: test failed (MP IPN not reaching my site)
    – Whitelisted all MP IPs on Cloudflare: test failed.
    – Made an exception on the site to have the IPN url under http: test failed.
    – Removed the site from Cloudflare and had my own Certificate running, no firewall, nothing, kept https: test failed.
    – Removed the https from wordpress settings and switched to http, removed the htaccess 301 to redirect to https, updated the url on MP to be http: test PASSED.
    – Set WordPress url to https back but not the htaccess redirect (basically I have 2 sites under this setting, one with http the other under https): test failed.
    – Set rule back to redirect to https: test failed.

    So, Claudio, the only scenario where the server will receive the IPN response from MP is when the site is completely OFF the ssl certificate, as soon as you change the site back to http it will work again.

    Let me know if you see anything on my report that could lead you to identify any issue on the plugin otherwise I will have to find a way to contact MP to see what the hell is going on.

    Best.
    Juan.-

    Plugin Author Claudio Sanches

    (@claudiosanches)

    Let me know if you see anything on my report that could lead you to identify any issue on the plugin otherwise I will have to find a way to contact MP to see what the hell is going on.

    Sorry, but there is no way to block or do anything in this plugin that could cause problems like this, see that the SSL certificate is installed in a server or in CloudFlare, the things are blocked before hit this plugin.
    So yes, looks like something that should be fixed in MP side.

Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘Pending Payment Status not changing’ is closed to new replies.