Skip to content

Commit

Permalink
Donation management portal link
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbrethorst committed Nov 20, 2023
1 parent 340ea01 commit 62f2bc0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/donations_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DonationsController < ApplicationController
def index

end
end
14 changes: 14 additions & 0 deletions app/views/donations/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class='row'>
<div class='col-sm-12'>
<p>
Make a donation: <%= link_to "Donate securely with Stripe", "https://donate.stripe.com/cN2dUHej01k46Mo288" %>
</p>
<p>
Manage a recurring donation: <%= link_to "Stripe Billing Portal", "https://billing.stripe.com/p/login/aEU8yVeeIezBd5C3cc" %>
</p>

<p>
Need a donation receipt or have other questions about your donation? Email us at <%= link_to "info@onebusaway.org", "mailto:info@onebusaway.org?subject=Donation Assistance" %>
</p>
</div>
</div>
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@

resources :alert_feed_items

get 'manage-donations', to: 'donations#index'

# Sessions
get '/login', to: 'sessions#new'
post '/login', to: 'sessions#create'
Expand Down
7 changes: 7 additions & 0 deletions spec/requests/donations_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'rails_helper'

RSpec.describe "Donations", type: :request do
describe "GET /index" do
pending "add some examples (or delete) #{__FILE__}"
end
end

0 comments on commit 62f2bc0

Please sign in to comment.