Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.03 KB

SpreePayture

Payture payments integration with Spree.

Installation

Add spree_payture to your Gemfile:

gem 'spree_payture', github: 'webgradus/spree_payture'

Add 'paytureman' gem to your Gemfile:

gem 'paytureman', github: 'llxff/paytureman', branch: 'success_url'

Add some configuration in config/initializers/payture.rb:

Paytureman::Configuration.setup Rails.env do |config|
  config.host = "sandbox"
  config.key = "TestShop"
  config.password = "123"
end

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

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_payture/factories'

Copyright (c) 2014 [name of extension creator], released under the New BSD License