Kasugaijin's open-source Ruby on Rails production app that enables dog rescue organisation staff in Mexico to post dogs and receive applications for adoption from users in USA and Canada..
on /successes we will have a Paypal donate button that uses the Paypal SDK to generate a popup to authenticate and complete the donation via paypal. This transaction will return an object via the SDK script. This object contains information that should be persisted so we can track donations over time.
Subtasks
[x] - Add Paypal SDK button to view
[x] - Style button
[x] - Create Donations controller with a #create action to save the donation information
[x] - Create Donations Table
[x] - Add AJAX call in onComplete controller (save $ value and currency if transaction is complete, otherwise discard)
[x] - Test all components work with Paypal sanbox accounts
[x] - Update SDK button for production - env and fetch url
[x] - Update SDK onComplete to make request to production instead of dev URL
[x] - Deploy and run rails db:migrate
[x] - Add ENV vars to app and Heroku
[x] - Test small donation with real card
[x] - Make sure the button loads on page and does not require refresh
[x] - Add integration tests for this flow
[x] - Add a task for active admin access to donations
on
/successes
we will have a Paypal donate button that uses the Paypal SDK to generate a popup to authenticate and complete the donation via paypal. This transaction will return an object via the SDK script. This object contains information that should be persisted so we can track donations over time.Subtasks
env
and fetch urlrails db:migrate