moves shared duplicate code from amazon & paypal

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