Send bulk SMS to your Solidus customers via the seven gateway.
- Bulk SMS - Reach all customers in one go
- Country Filter - Limit recipients to a specific country
- Multiple Auth Sources - Configure the API key via
SevenConfiguration[:api_key],ENV['SEVEN_DUMMY_API_KEY']orENV['SEVEN_API_KEY'](in that order)
- A Solidus installation (Rails 6+)
- A seven account with API key (How to get your API key)
Add the gem to your Gemfile:
gem 'solidus_seven'Install dependencies and run the install generator:
bundle install
bin/rails generate solidus_seven:installThe API key is resolved (in order):
SevenConfiguration[:api_key]ENV['SEVEN_DUMMY_API_KEY']ENV['SEVEN_API_KEY']
Set whichever fits your deployment.
bin/rakebin/rake defaults to building the dummy Solidus app if it does not exist, then runs specs. Regenerate the dummy app via bin/rake extension:test_app.
For static analysis:
bundle exec rubocopWhen testing applications integrating with this gem, load the factories:
require 'solidus_seven/testing_support/factories'Or, if you use FactoryBot.definition_file_paths, load Solidus core factories together with this extension:
SolidusDevSupport::TestingSupport::Factories.load_for(SolidusSeven::Engine)bin/sandbox boots a sandbox Solidus app under ./sandbox. bin/rails forwards any Rails command to sandbox/bin/rails:
bin/rails serverNeed help? Feel free to contact us or open an issue.