/solidus_conekta

Solidus Payment Gateway for Conekta.io

Primary LanguageRubyBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Solidus Conekta

Credit to https://github.com/InstafitGlobal/spree_conekta https://github.com/AgilTec/spree_conekta https://github.com/crowdint/spree_conekta

Setup

Add this extension to your Gemfile:

gem 'solidus_conekta', github: 'crsmillan/solidus_conekta'

Then run:

bundle
rails g solidus_conekta:install

##Setup Conekta Payments

  1. You need to go to Conekta, create an account and retrieve your private and public api keys.

  2. On the spree application admin side go to:

/admin/payment_methods/new
  1. In the provider box,choose one of the following options depending on your needs:

     Spree::BillingIntegration::ConektaGateway::Card
    
     Spree::BillingIntegration::ConektaGateway::Cash
    
     Spree::BillingIntegration::ConektaGateway::Bank
    
     Spree::BillingIntegration::ConektaGateway::MonthlyPayment
    
  2. On the auth token field, add your Conekta private key.

  3. On the public auth token field, add your Conekta public private key.

###Source Methods

Conekta currently supports four different methods:

####Card

Card method will let you pay using your credit or debit card. More info: Conekta Card

####Cash

Cash method will generate a bar code with the order information so you'll be able to take it to your nearest OXXO store to pay it. More info: Conekta Cash

####Bank

Bank method will let you generate a deposit or transfer reference. More info: Conekta Bank

####Monthly Payment

This method will let you pay using your credit card with a monthly payment schema. More info: Conekta Monthly Payments You can configurate the options for number of installements and default creating an initializer in your app and writing code as this example:

  Spree::Conekta.configure do |config|
    config.installment_options = [3] # [3, 6] , [3, 6, 12]
    config.installment_default = 3 # 6 12
  end

Important Note: If you want to support all source methods, you'll need to create a payment method for each one.

Important Note: This extension only works with ruby 2.0+.

Contributors

  • Jonathan Tapia
  • Jonathan Garay
  • Fernando Cuauhtemoc Barajas Chavez
  • Herman Moreno
  • Edwin Cruz
  • Carlos A. Muñiz Moreno
  • Chalo Fernandez
  • Guillermo Siliceo
  • Jaime Victoria
  • Jorge Pardiñas
  • Juan Carlos Rojas
  • Leo Fischer
  • Manuel Vidaurre
  • Marco Medina
  • Mumo Carlos
  • Sergio Morales
  • Steven Barragan
  • Ulices Barajas
  • bishma-stornelli