Skip to content

How should we respond back to mercadopago webhook? #114

Closed Answered by ihojmanb
ihojmanb asked this question in Q&A
Discussion options

You must be logged in to vote

To be more specific, I'm receiving two kinds of notifications:

  1. the one with the payment information, with the following body:
 {
  action: 'payment.created',
  api_version: 'v1',
  data: { id: '52090698612' },
  date_created: '2022-12-01T23:14:47Z',
  id: 104321540926,
  live_mode: true,
  type: 'payment',
  user_id: '1188717534'
}

this one has the following User-Agent: 'MercadoPago WebHook v1.0 payment'

  1. another with the resource information, with the following body:
{
  resource: 'https://api.mercadolibre.com/collections/notifications/52099698668',
  topic: 'payment'
}

this one has the following User-Agent: 'MercadoPago Feed v2.0 payment'

number 1 gives me all the data that I need.…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gdeandradero
Comment options

@ihojmanb
Comment options

@gdeandradero
Comment options

@ihojmanb
Comment options

Answer selected by icaldana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants