lhpaul / spree_dineromail

Gem for adding dineromail payment method to your store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpreeDineromail

This gems adds Dineromail payment method. Its based on the nicolas-simplex / dineromail

Installation

Add spree_dineromail to your Gemfile:

gem 'spree_dineromail', :git => 'https://github.com/lhpaul/spree_dineromail'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_dineromail:install

You configurate the gem to work with dinero_mail_fake_ipn

## config/dineromail.yml
development:
    checkout_url: http://localhost:4000/integration_requests
    ipn_url: http://localhost:4000/queries
staging:
    checkout_url: http://localhost:4000/integration_requests
    ipn_url: http://localhost:4000/queries
production:
    checkout_url: https://checkout.dineromail.com/CheckOut
    ipn_url: https://chile.dineromail.com/Vender/ConsultaPago.asp

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_dineromail/factories'

Copyright (c) 2014 Luis Hernan Paul, released under the New BSD License

About

Gem for adding dineromail payment method to your store

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 100.0%