Created
March 26, 2014 21:34
-
-
Save ornerymoose/9794156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_tag charges_path(id: @cart.id) do %> | |
<article> | |
<%= number_to_currency(@cart.total_price) %> | |
</article> | |
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button" | |
data-key="<%= Rails.configuration.stripe[:publishable_key] %>" | |
data-description="One-time Charge" | |
data-amount="<%= @cart.total_price * 100 %>" | |
data-shipping-address="false" | |
data-billing-address="false" | |
data-email=""> | |
</script> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment