pay_form
Pay form for sending people to PayPal.
<html metal:use-macro="here/main_template/macros/master">
<div metal:fill-slot="main" tal:define="person python:here.gatherPayData(request.userid)">
<h1>Payment Form</h1>
<div metal:define-macro="form">
<p>To complete your registration, you must now pay, in full, via PayPal.</p>
<ul>
<li>Registration: $250</li>
<li tal:condition="person/donationAmount">
Donation: $<span tal:replace="person/donationAmount" /></li>
<li tal:condition="person/extraTshirts">
Extra T-shirts: $15 each, total
$<span tal:replace="python: person/tshirtCosts" /></li>
</ul>
<p><b>Total:</b> $<span tal:replace="person/totalCost" /></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="bill@oai-usa.com">
<input type="hidden" name="item_name" value="Bootcamp">
<!-- send the userid as "item number", so we can find it later -->
<input type="hidden" name="item_number" tal:attributes="value person/getId">
<input type="hidden" name="amount" tal:attributes="value person/totalCost">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://bootcamp.zpugdc.org/paypal_done">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<!-- things we want to pass to PayPal to make registration nicer -->
<input type="hidden" name="first_name" tal:attributes="value person/getFirstname">
<input type="hidden" name="last_name" tal:attributes="value person/getLastname">
<input type="hidden" name="city" tal:attributes="value person/getCity">
<input type="hidden" name="state" tal:attributes="value person/getState">
<input type="hidden" name="country" value="US">
<input type="hidden" name="email" tal:attributes="value person/getEmail">
<input type="hidden" name="night_phone_a" tal:attributes="value person/getPhone">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif"
border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</div>
</div>
</html>
<div metal:fill-slot="main" tal:define="person python:here.gatherPayData(request.userid)">
<h1>Payment Form</h1>
<div metal:define-macro="form">
<p>To complete your registration, you must now pay, in full, via PayPal.</p>
<ul>
<li>Registration: $250</li>
<li tal:condition="person/donationAmount">
Donation: $<span tal:replace="person/donationAmount" /></li>
<li tal:condition="person/extraTshirts">
Extra T-shirts: $15 each, total
$<span tal:replace="python: person/tshirtCosts" /></li>
</ul>
<p><b>Total:</b> $<span tal:replace="person/totalCost" /></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="bill@oai-usa.com">
<input type="hidden" name="item_name" value="Bootcamp">
<!-- send the userid as "item number", so we can find it later -->
<input type="hidden" name="item_number" tal:attributes="value person/getId">
<input type="hidden" name="amount" tal:attributes="value person/totalCost">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://bootcamp.zpugdc.org/paypal_done">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<!-- things we want to pass to PayPal to make registration nicer -->
<input type="hidden" name="first_name" tal:attributes="value person/getFirstname">
<input type="hidden" name="last_name" tal:attributes="value person/getLastname">
<input type="hidden" name="city" tal:attributes="value person/getCity">
<input type="hidden" name="state" tal:attributes="value person/getState">
<input type="hidden" name="country" value="US">
<input type="hidden" name="email" tal:attributes="value person/getEmail">
<input type="hidden" name="night_phone_a" tal:attributes="value person/getPhone">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif"
border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</div>
</div>
</html>
