RailsCasts Pro episodes are now free!

Learn more or hide this

Brad Madiuk's Profile

GitHub User: bradmadiuk

Site: http://www.bradmadiuk.com

Comments by Brad Madiuk


Has anyone figured out how to implement this for one-time payments as opposed to recurring/subscription?


Just an update - the issue appeared to be that the SMTP was not set up correctly. To rectify: you'll need to ensure your gem mail is set in your Gemfile. Next, create a setup_mail.rb file in config/initializers.

ActionMailer::Base.smtp_settings = {
        :address                        => "smtp.gmail.com",
        :port                                        => 587,
        :domain                         => "localhost:3000",
        :user_name                 => "whatever@gmail.com",
        :password                 => "password",
        :authenticaton => "plain",
        :enable_starttls_auto => true

Change to your smtp of choice. Next include in your

application.rb file: 
    config.action_mailer.delivery_method = :smtp
  config.action_mailer.perform_deliveries = true
  config.action_mailer.raise_delivery_errors = false
  config.action_mailer.default :charset => "utf-8"

And then... magic.


I realize this is 2 years (over) ago, but I thought I'd say I have the same problem. I found there was no .gitignore file so I created it with the README details, with no luck in an app I was working with called launchpage-rails. Seems to be a lack of config for the app.