moves shared duplicate code from amazon & paypal closes #183

moves shared duplicate code from amazon & paypal modules into payment
module, with some basic sanity checks to decide what button is displayed
depending on which payment module is enabled, closes #183