Spree Webpay (Transbank)
==============
This is a integration of the Acid Labs TBK Gem into Spree Gateways. Supports Spree Multidomain
Disclaimer
This extension was created for multi-domain spree
Requirements
- Install in your project the e-commerce Connection Kit (KCC) from Transbank
- Follow the Transbank Webpay Integration manual to configure and set permissions to the directory tree and files.
- Serve your CGI scripts in your Web server
Usage
Set CGI URL and root path in config/tbk-webpay.yml
production:
cgi_base_url: "http://example.com/cgi"
tbk_root_path: "/home/deploy/example.com/cgi"
staging:
cgi_base_url: "http://staging.example.com/cgi"
tbk_root_path: "/home/deploy/staging.example.com/cgi"
Installation
Add spree_tbk_webpay to your Gemfile:
gem 'spree_tbk_webpay'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_tbk_webpay:install
Run migrations
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_tbk_webpay/factories'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2014 Acid Labs, all right reserved.