Conekta alternatives and similar gems
Based on the "E-Commerce and Payments" category.
Alternatively, view Conekta alternatives based on common mentions on social networks and blogs.
-
Active Merchant
Active Merchant is a simple payment abstraction library extracted from Shopify. The aim of the project is to feel natural to Ruby users and to abstract as many parts as possible away from the user to offer a consistent interface across all supported gateways. -
credit_card_validations
:credit_card: ruby gem for validating credit card numbers, generating valid numbers, luhn checks
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Conekta or a related project?
README
Conekta Ruby
This is a Ruby library that allows interaction with Conekta's API.
Installation
Add this line to your application's Gemfile:
gem 'conekta'
And then execute:
bundle
Or install it yourself as:
gem install conekta
Usage
# Set your configuration variables
# This changes the Accept-Language Header to the locale specified
Conekta.locale = :es
Conekta.api_key = '1tv5yJp3xnVZ7eK67m4h'
# Or via an initializer in config/initializers/conekta.rb
Conekta.config do |c|
c.locale = :es
c.api_key = '1tv5yJp3xnVZ7eK67m4h'
c.api_version = '2.0.0'
end
YOUR_DOMAIN = 'localhost:9292'.freeze
# Order creation example
begin
customer = Conekta::Customer.create(
{
name: 'Matz',
email: '[email protected]'
}
)
order_params =
{
currency: 'MXN',
customer_info: {
customer_id: customer.id
},
line_items: [
{
name: 'T-Rex',
unit_price: 10000,
quantity: 1
}
],
checkout: {
type: 'HostedPayment',
name: 'Checkout Dummy',
allowed_payment_methods: %w[cash card bank_transfer],
success_url: YOUR_DOMAIN + '/success.html',
failure_url: YOUR_DOMAIN + '/cancel.html',
}
}
order = Conekta::Order.create(order_params)
rescue Conekta::Error => error
error.details.each do |error_details|
puts error_detail.message
end
end
Documentation
Please visit the Rdoc or you can take a look to the official API reference for an up-to-date documentation.
How to contribute to the project
Fork the repository
Clone the repository
git clone [email protected]:yourUserName/conekta-ruby.git
Create a branch
git checkout develop git pull origin develop # You should choose the name of your branch git checkout -b <feature/my_branch>
Make necessary changes and commit those changes
git add . git commit -m "my changes"
Push changes to GitHub
git push origin <feature/my_branch>
Submit your changes for review, create a pull request
To create a pull request, you need to have made your code changes on a separate branch. This branch should be named like this: feature/my_feature or fix/my_fix.
Make sure that, if you add new features to our library, be sure that corresponding unit tests are added.
If you go to your repository on GitHub, you’ll see a Compare & pull request button. Click on that button.
We are always hiring!
If you are a comfortable working with a range of backend languages (Java, Python, Ruby, PHP, etc) and frameworks, you have solid foundation in data structures, algorithms and software design with strong analytical and debugging skills, check our open positions: https://www.conekta.com/careers
License
Developed in :mexico: Mexico by Conekta. Available with [MIT License](LICENSE).
*Note that all licence references and agreements mentioned in the Conekta README section above
are relevant to that project's source code only.