MercadoPago: Error configuring the URL for IPN notifications (Bad Status)

0

I was working with a Basic Checkout of MarkingPayment in SandBox mode, without any problem. The entire shopping circuit works well including notifications ( IPN ).

When I want to switch to Production , MercadoPago throws an error when trying to configure the URL for notifications (here: link ) in the real account.

Always throws:

  

The URL entered does not respond to a correct HTTP status . You must answer 200 or 201.

However, the same URL works perfect for the TEST user. I have changed the client_id and the client_secret in the code that is executed when receiving the IPN so that they correspond with the real user (a real seller account of MercadoPago ) but there is no case, it does not let me configure the URL .

    
asked by dgAlef 20.03.2017 в 15:44
source

3 answers

2

Mercado Pago sends notifications and verification of link to POST as well that you should be able to prove that it returns a 200 or 201 status by using the linux console:

curl -I http://dominio.com/ipn-mercado-pago -X POST

    
answered by 05.06.2017 в 16:34
0

Check how the plugin payment WooCommerce is done. Here is one made for Chile, it is not official but it works.

link

    
answered by 20.03.2017 в 16:38
0

You can try making a request to the page of your notifications from the terminal:

curl -I http://mi-url.com/mi-enlace-notificaciones

Check if you are sending an HTTP 200 or 201, in my case it sent me HTTP 301, and that WordPress was redirecting me, I had to solve that. If this is your case, then you have to make a redirection exclusion in your .htaccess .

Another thing you could try is to enter the URL without HTTPS , that just gave me trouble.

I hope it works.

    
answered by 06.05.2017 в 18:37