Skip to content

Customers & Cards

Juan Ignacio Veltri edited this page Feb 7, 2019 · 4 revisions

Customers

The methods available for customers are:

  • create - Create a Customer
mercadopago.customers.create(payload, configurations, callback);
  • save - Create a Customer
mercadopago.customers.save(payload, configurations, callback);
  • update - Update a Customer
mercadopago.customers.update(payload, configurations, callback);
  • get - Get a Customer
mercadopago.customers.get(id, configurations, callback);
  • findById - Get a Customer
mercadopago.customers.findById(id, configurations, callback);
  • search - Searching Payments
mercadopago.customers.search(configurations, callback);
  • Remove - Remove a Customer
mercadopago.customers.delete(id, configurations, callback);

Cards

The methods available for cards are:

  • create - Create a Card
mercadopago.customers.cards.create(payload, configurations, callback);
  • save - Create a Card
mercadopago.customers.cards.save(payload, configurations, callback);

Inside the payload you need to send the id that is going to be the one for the customer_id

  • update - Update a Card
mercadopago.customers.cards.update(payload, configurations, callback);

Inside the payload you need to send the id that is going to be the one for the customer_id

  • get - Get a Card
mercadopago.customers.cards.get(customer_id, configurations, callback);
  • findById - Get a Card
mercadopago.customers.cards.findById(customer_id, configurations, callback);
  • all - Get all the cards for an specific customer
mercadopago.customers.cards.all(customer_id, card_id, configurations, callback);
  • Remove - Remove a card
mercadopago.customers.cards.delete(customer_id, card_id, configurations, callback);
Clone this wiki locally