$ gem install mercadopago-ruby
require 'mercadopago'
- Get a customer by email
@client = MercadoPago::API::Clients.new(access_token: ACCESS_TOKEN)
@client.search_customers_by_email(email: '[email protected]')
- Create a new customer
@client = MercadoPago::API::Clients.new(access_token: ACCESS_TOKEN)
@client.create_customer(email: '[email protected]')
- Retrieve customer cards
@client = MercadoPago::API::Cards.new(access_token: ACCESS_TOKEN)
@client.retrieve_customer_cards(CUSTOMER_ID)