<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="" value="_cart">
<input type="hidden" name="" value="1">
<input type="hidden" name="email" value="write@email">
<% var num = 0; %>
<% cart.forEach(function(pp){ %>
<% num++ %>
<input type="hidden" name="item<%= num %>" value="<%= p.title %>" >
<input type="hidden" name="amount_<%= num %>" value="<%= p.price %>" >
<input type="hidden" name="quantity_<%= num %>" value="<%= p.qty %>" >
<% }); %>
<input type="hidden" name="currency" value="USD">
<input type="hidden" name="amount" value="<%= total %>">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif"
name="submit" alt="">
name="submit" alt="">
</form>
Comments
Post a Comment