Skip to content

Solidus extension to allow payment methods to be restricted by zones

License

Notifications You must be signed in to change notification settings

magma-labs/solidus_payment_method_by_zone

Repository files navigation

CircleCI

solidus_payment_method_by_zone

Solidus extension to allow payment methods to be restricted by zones.

Installation

Add solidus_payment_method_by_zone to your Gemfile:

gem 'solidus_payment_method_by_zone'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_payment_method_by_zone:install

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, and Rubocop static code analysis. 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_payment_method_by_zone/factories'

Copyright (c) 2019 MagmaLabs, released under the New BSD License