Rails 4 app which implements payment calls via conekta-ruby.
This sample are using .ruby-version
and .ruby-gemset
files, if you are using rb-env or rvm you can use the next steps.
git clone git@github.com:conekta/hello-conekta-ruby-rails.git hello-conekta
cd hello-conekta
gem install bundle
bundle
rake db:migrate
- run
rake secret
in your console, copy and paste the secret code toconfig/secrets.yml.example
, then put your Sandbox Secret/Public Conekta API KEY. Save without extension.example
, the file names looks likeconfig/secrets.yml
.
Now you can run rails s
and go to http://localhost:3000
or if you´re using pow.cx, you need to make a symbolic link ln -s [route_to_project]/hello-conekta ~/.pow/hello-conekta
, after you make the symblink to hello-conekta, you can go to your browser and write http://hello-conekta.dev
To run it, install rails 4. The app should run on http://localhost:3000.
The project need some improvements, but you can test Conekta::Charge.create in Ruby on Rails, feel free to make PR.
Developed by Conekta. Available with MIT License.