<!-- insert_bottom "[data-hook='cart_buttons']" -->
<%= render :partial => "spree/amazon/login" %>

<!-- insert_bottom "[data-hook='cart_buttons']" -->
<% if Spree::Gateway::Amazon.count > 0 %>
  <%= render :partial => "spree/amazon/login" %>
<% end %>

Hide pay with amazon button if the payment method hasn't been configured
Hide pay with amazon button if the payment method hasn't been configured