Problems with IPN in sandbox

0
  • I created an account (with my ID)
  • I created the application in: link
  • I added the public URL at: link
  • I clicked on the test button (sandbox) and the answer gave OK.
  • I used the credentials that the application gave me.
  • I created the payment preference, and I used sandbox_init_point.
  • He redirected me to the MercadoPago site, I made the payment using the cards he says here: link
  • Payment was successful.
  • I go to my server's log and I see the data enter, but like this:

    34.236.9.110   - - [12/Nov/2018:12:25:37 +0000] "POST /ipn/pm2-mp?id=896052131&topic=merchant_order HTTP/1.1" 201 12 "-" "MercadoPago Feed v2.0 merchant_order"
    216.33.196.25  - - [12/Nov/2018:12:25:45 +0000] "POST /ipn/pm2-mp?type=payment&data.id=16654301 HTTP/1.1" 201 12 "-" "MercadoPago WebHook v1.0 payment"
    
  • If I read the log of what comes in the POST (and in the GET also by the doubts) I read:

    {"resource":"https:\/\/api.mercadolibre.com\/merchant_orders\/896052131","topic":"merchant_order","q":"\/ipn\/mercado-pago","id":"896052131"}
    {"data":{"id":"16654301"},"date_created":"2018-11-12T08:25:44.000-04:00","type":"payment","api_version":"v1","id":444266941,"action":"payment.created","user_id":307720316,"live_mode":false,"q":"\/ipn\/mercado-pago","data_id":"16654301"}
    

    I assume that the last one is the payment, because it says type: payment (one expects topic == 'payment' , but good ...) ... and I try to get the payment with the id: 16654301 and then with the 444266941 . He returns me:

    Resource 16654301 not found
    Resource 444266941 not found
    

    Am I doing something wrong? or do I have to do something? I followed the documentation to the letter, but on 3 sides it says 3 different things.

    Thank you.

        
    asked by ecgk 12.11.2018 в 13:37
    source

    0 answers