Sha256: 3d289a0d86f9b6325161f45f99252cc826345bc04bfac6bd1a1d1feed27d24a7
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
# Sample configuration, but this will get you bootstrapped with BrainTree # TODO: # - information on where to register... # - setting up production passwords... # - better way to do production/test changes? Freemium.gateway = Freemium::Gateways::BrainTree.new Freemium.gateway.username = "demo" Freemium.gateway.password = "password" # If you want Freemium to take care of the billing itself # (ie, handle everything within your app, with recurring payments via cron # or some other batch job) # use :manual # # if you want to use the gateways recuring payment system # use :gateway Freemium.billing_handler = :manual # the class name of mailer used to send out emails to subscriber Freemium.mailer = SubscriptionMailer # uncomment to be cc'ed on all freemium emails that go out to the user #Freemium.admin_report_recipients = %w{admin@site.com} # the grace period, in days, before Freemium triggers additional mails # for the client. Defaults to 3 Freemium.days_grace = 3 # would you like to offer a free trial? Change this to specify the # length of the trial. Defaults to 0 days Freemium.days_free_trial = 30 ##### See vendor/plugins/freemium/freemium.rb for additional choices if Rails.env == 'production' # put your production password information here.... Freemium.gateway.username = "demo" Freemium.gateway.password = "password" elsif Rails.env == 'test' # prevents you from calling BrainTree during your tests Freemium.gateway = Freemium::Gateways::Test.new end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
freemium-0.0.2 | lib/generators/templates/freemium.rb |
freemium-0.0.1 | lib/generators/templates/freemium.rb |