No commit activity in last 3 years
No release in over 3 years
Dineromail integration with Catarse crowdfunding platform
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

CatarseDineromail

Dineromail integration with Catarse crowdfunding platform

Installation

Add this lines to your Catarse application's Gemfile:

gem 'dinero_mail_ipn', git: "git://github.com/josemarluedke/dinero_mail_ipn.git"
gem 'catarse_dineromail'

And then execute:

$ bundle

Usage

Configure the routes for your Catarse application. Add the following lines in the routes file (config/routes.rb):

mount CatarseDineromail::Engine => "/", :as => "catarse_dineromail"

Configurations

Create this configurations into Catarse database:

dineromail_merchant, dineromail_ipn_password and dineromail_country_id

In Rails console, run this:

Configuration.create!(name: "dineromail_merchant", value: "123456")
Configuration.create!(name: "dineromail_country_id", value: "2")
Configuration.create!(name: "dineromail_ipn_password", value: "ipn_password")
Configuration.create!(name: "dineromail_currency", value: "clp")

Currencies: "ars" "mxn" "clp" "brl" "usd"

Development environment setup

Clone the repository:

$ git clone git://github.com/josemarluedke/catarse_dineromail.git

Add the catarse code into test/dummy:

$ git submodule add git://github.com/danielweinmann/catarse.git test/dummy

Copy the Catarse's gems to Gemfile:

$ cat test/dummy/Gemfile >> Gemfile

And then execute:

$ bundle

Replace the content of test/dummy/config/boot.rb by this:

require 'rubygems'
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
if File.exist?(gemfile)
  ENV['BUNDLE_GEMFILE'] = gemfile
  require 'bundler'
  Bundler.setup
end
YAML::ENGINE.yamler= 'syck' if defined?(YAML::ENGINE)

$:.unshift File.expand_path('../../../../lib', __FILE__)

Troubleshooting in development environment

Remove the admin folder from test/dummy application to prevent a weird active admin bug:

$ rm -rf test/dummy/app/admin

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

This project rocks and uses MIT-LICENSE.