Created
March 1, 2016 06:43
-
-
Save vamsipavanmahesh/09d496c656e7c6b0dce9 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 action="/purchase" method="POST"> | |
<script | |
src="https://checkout.razorpay.com/v1/checkout.js" | |
data-key="<%= "#{Figaro.env.MERCHANT_KEY_ID}" %>" | |
data-amount="<%= "#{@product.price}" %>" | |
data-name="<%= "#{@product.seller.name}" %>" | |
data-description="<%= "#{@product.description}" %>" | |
data-image="/images/product.jpg" | |
data-prefill.name="<%= "#{current_user.name}" %>" | |
data-prefill.email="<%= "#{current_user.email}" %>" | |
data-theme.color="#F37254" | |
> | |
</script> | |
<input type="hidden" value="<%= "#{@product.id}" %>" name="product_id"> | |
<input type="hidden" value="<%= "#{current_user.id}" %>" name="user_id"> | |
</form><br> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment