[![Build Status](https://travis-ci.org/magma-labs/solidus_payment_method_by_zone.svg?branch=master)](https://travis-ci.org/magma-labs/solidus_payment_method_by_zone) # 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: ```ruby gem 'solidus_payment_method_by_zone' ``` Bundle your dependencies and run the installation generator: ```shell 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](https://github.com/bbatsov/rubocop) static code analysis. The dummy app can be regenerated by using `rake test_app`. ```shell 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: ```ruby require 'solidus_payment_method_by_zone/factories' ``` Copyright (c) 2019 MagmaLabs, released under the New BSD License