SolidusPagseguroOficial
Extension that integrates with the pagseguro
Installation
Add solidus_pagseguro_oficial to your Gemfile:
gem 'solidus_pagseguro_oficial'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g solidus_pagseguro_oficial:install
You must set 2 environment variables using your PagSeguro account as the following example:
export PAGSEGURO_EMAIL=xxx@xxx.com
export PAGSEGURO_TOKEN=1232328947843794
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 'solidus_pagseguro_oficial/factories'
Copyright (c) 2016 Diego Domingues, released under the New BSD License