- You need to create a package called
sponsor. - The check with Helpers.isAdmin() need to done with allow/deny callback on collection.
Sponsors.insertneed to beinsertSponsorSponsors.removeneed to beremoveSponsor
scrollToTopshould be added in a filter that will be calledonAfterActionon every pages- All the subscribe with a
wait()method need to be put inside the functionwaitOnof Iron-router - The admin route need to check if the current user is an admin
Why not using stripe checkout.js ? better support and builtin with everything.
inDollarsneed to be done under aUtilsnamespace
'submit #campaignForm'use autoform and put everything inside a before callback
Why not using accounts-ui to provide those forms?
Wrap every collection campaign,transaction, transfer into their own package and use simple-schema to define the database schema of each collection. We can use the validators of simple-schema to validate any insert or update.
The stripe methods need to use the stripe package for server who provide sync methods instead of async.
All the jobs need to be done with the package job-collection which is well written and made for this kind of case.