0.0
The project is in a healthy, maintained state
Allows interaction with the Vindi API in an elegant and integrated way with Ruby/Rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

Vindi Rails SDK

Leia em Português (README.pt-BR.md)

Ruby/Rails integration SDK for the Vindi API v1 (recurring billing platform).

Installation

Add this line to your application's Gemfile:

gem 'vindi-rails', path: 'c:/Users/User/develop/estudo/vindi-rails'

And then execute:

$ bundle install

Configuration

Configure the SDK. In a Rails application, you can run the installation generator to create the initializer template:

$ rails generate vindi:install

This will create config/initializers/vindi.rb where you can set your keys:

Vindi.configure do |config|
  config.api_key = 'your_private_api_key'
  # Optional: Define base URL (default is Sandbox)
  # config.api_url = 'https://gp.vindi.com.br/api/v1'
end

Usage

Resources are mapped directly under the Vindi namespace.

Customers

# List customers
customers = Vindi::Customer.list(page: 1, per_page: 20)

# Create a customer
customer = Vindi::Customer.create(
  name: 'John Doe',
  email: 'john.doe@example.com',
  registry_code: '12345678909' # CPF/CNPJ
)

# Update a customer
Vindi::Customer.update(customer.id, name: 'John Doe Updated')

# Delete a customer
Vindi::Customer.delete(customer.id)

Running Tests with Docker Compose

To build and run the Minitest test suite inside Docker:

docker compose build
docker compose run --rm test

Detailed Documentation

For a full list of mapped resources and detailed usage instructions, check out the WIKI.md.