Personal tools
You are here: Home Members Joel Burton CMFMember Presentation pay_form
Navigation
Log in


Forgot your password?
New user?
Mailing Lists
You can read our ZPUGDC mailing list archives online.
You can subscribe to our mailing list:
Book Review

The Definitive Guide to Plone

Reviewer: joel
 

pay_form

Document Actions
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>
by Joel Burton last modified 04/19/2005 02:28 PM


Click here to check out
The Washington DC Python Meetup Group!
Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: