See a Payment at https://api.mercadolibre.com/collections/notifications/

0

I was testing with Sandbox the topic of IPN notifications of MercadoPago , and all Good. The issue is that I want to test how to receive the data of a payment made, and since you can not try sandbox (I understand that, since the payment does not appear in the user), I wanted to try with a purchase already made by a user who has already made sales.

But putting the id and token in link {id}? access_token = {token} returns this:

Payments Notification Check a payment that was reported through the IPN

link

So the question is ... if or if I have to make a real purchase, have it make the notification, to finally test how to receive / view the token data?

Thanks

    
asked by Cecilia Auer 28.11.2017 в 17:21
source

1 answer

0

Payment notifications do not arrive in sandbox, since the url configured for notifications is unique to the application, so if the application is in production, sandbox tests could send notifications to the same url that is listening to an application productive generating duplicate payments or similar problems.

An IPN notification is a POST Request towards the url specified with a particular format, you can do the tests simulating a notification with Postman.

IPN : link

Where the id, would be the id of the payment created, the rest follow the normal flow and https://www.yoursite.com/notifications_uri is the url where to receive the notifications.

  

Endpoint /collection/notifications/ has been deprecated, you should use /v1/payments/ instead, (see deprecation note link )

    
answered by 29.11.2018 в 21:52