Payture payments integration with Spree.
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
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