Add the Conekta extension to your Gemfile.
gem 'spree_conekta', github: 'conekta/spree_conekta', branch: '3-0-stable'
Run the following commands to install the gem.
bundle install rails g spree_conekta:install
In the admin of your Spree shop, go to the Configurations > Payment Method > New section.
Select the method that you want to use.
For credit and debit cards:
For cash payments:
For monthly payments without interest on credit cards:
To process months without interest, adjust the settings in the Spree initializer (config/spree.rb).
Spree::Conekta.configure do |config|
config.installment_options =  # Ejemplo: [3, 6] , [3, 6, 12]
config.installment_default = 3 # Ejemplos: 6 12
Depending on the payment method it might ask you for 1 or 2 fields.
In the Auth Token field enter your private key and in the Public Auth Token enter your public key.
Enter your Conekta Admin and go to the Webhooks section. Click "Create Webhook".
When creating a webhook you will be prompted to enter a URL. Use the URL: http://mydomain.com/conekta/payments/, but replace "mydomain" with the actual domain of your Spree shop. Check that the Production mode and Sandbox mode fields are enabled. Click "Enable".
From now on you can receive automatic payment notifications.