Chris Beach df91a44277 fix client/server messages and locales
zip code should be a positive boolean not negative
remove dollar signs
fix stripe.rb method signature and charging logic
2017-11-26 12:24:27 +00:00

26 lines
713 B
Ruby

# name: discourse-donations
# about: Integrates Stripe into Discourse to allow forum visitors to make donations
# version: 1.11.1
# url: https://github.com/chrisbeach/discourse-donations
# authors: Rimian Perkins, Chris Beach
gem 'stripe', '2.8.0'
load File.expand_path('../lib/discourse_donations/engine.rb', __FILE__)
register_asset "stylesheets/discourse-donations.css"
enabled_site_setting :discourse_donations_enabled
register_html_builder('server:before-head-close') do
"<script src='https://js.stripe.com/v3/'></script>"
end
after_initialize do
load File.expand_path('../app/jobs/jobs.rb', __FILE__)
end
Discourse::Application.routes.prepend do
mount ::DiscourseDonations::Engine, at: '/'
end