Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1468

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::Payment::PayPalExpressCheckout Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="namespaceWt_1_1Payment.html">Payment</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html">PayPalExpressCheckout</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::Payment::PayPalExpressCheckout Class Reference<div class="ingroups"><a class="el" href="group__payment.html">Payment module (Wt::Payment)</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::Payment::PayPalExpressCheckout" --><!-- doxytag: inherits="Wt::WObject" -->
<p>A paypal express checkout process.  
 <a href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#details">More...</a></p>

<p><code>#include &lt;Wt/Payment/Paypal&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::Payment::PayPalExpressCheckout:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1Payment_1_1PayPalExpressCheckout__inherit__graph.png" border="0" usemap="#Wt_1_1Payment_1_1PayPalExpressCheckout_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1Payment_1_1PayPalExpressCheckout_inherit__map" id="Wt_1_1Payment_1_1PayPalExpressCheckout_inherit__map">
<area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="83,5,179,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1Payment_1_1PayPalExpressCheckout-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098">PaymentAction</a> { <a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098a9b457c8c1c30f26dc4868dd66502c513">SaleAction</a>, 
<a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098a5c3b7b045ba0e4ea1fc754d7fe905606">AuthorizationAction</a>, 
<a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098a7487375acf600ebb23fc2b642597ffde">OrderAction</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration for payment actions.  <a href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a1cd7acb78f0708359291d2aaebeb9c5a">setPaymentAction</a> (<a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098">PaymentAction</a> action)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the payment action.  <a href="#a1cd7acb78f0708359291d2aaebeb9c5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098">PaymentAction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#acc60336c6a0d4d440e16ec4e91612fd8">paymentAction</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the payment action.  <a href="#acc60336c6a0d4d440e16ec4e91612fd8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a7b81e081261bdba4813224e0f0d57e16">setParameter</a> (const std::string &amp;name, const std::string &amp;value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds or overrides a PayPal API request parameter.  <a href="#a7b81e081261bdba4813224e0f0d57e16"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1Payment_1_1Customer.html">Customer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a7ee00bea934b09d1baf9210200571005">customer</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the customer information.  <a href="#a7ee00bea934b09d1baf9210200571005"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1Payment_1_1Order.html">Order</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#af359415775a5b86aa7422cef7c148600">order</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the order information.  <a href="#af359415775a5b86aa7422cef7c148600"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Result.html">Result</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#aeb2b74f64b1d0bd7f72d8040047dcc8f">setup</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup the transaction.  <a href="#aeb2b74f64b1d0bd7f72d8040047dcc8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a2ad80f81c4915cb60d23f37747e435f3">startPayment</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the payment.  <a href="#a2ad80f81c4915cb60d23f37747e435f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Result.html">Result</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#af492f716a03a12e5ceadbf4cf2b10587">updateCustomerDetails</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates customer information from PayPal.  <a href="#af492f716a03a12e5ceadbf4cf2b10587"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Result.html">Result</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a93ef2abcdc87ff53780541621004b39a">completePayment</a> (const <a class="el" href="classWt_1_1Payment_1_1Money.html">Money</a> &amp;totalAmount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Completes the payment.  <a href="#a93ef2abcdc87ff53780541621004b39a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Approval.html">Approval</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a09e40455db060194805dff7b39f8313c">paymentApproved</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The payment approval signal.  <a href="#a09e40455db060194805dff7b39f8313c"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A paypal express checkout process. </p>
<p>This implements the PayPal Express Checkout process.</p>
<p>For more information about the PayPal API see: <a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECGettingStarted">https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;content_ID=developer/e_howto_api_ECGettingStarted</a></p>
<p>Use flow:</p>
<ol type="1">
<li>use <a class="el" href="classWt_1_1Payment_1_1PayPalService.html" title="This is a PayPal service class.">PayPalService</a> to create a <a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html" title="A paypal express checkout process.">PayPalExpressCheckout</a> instance.</li>
<li><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#aeb2b74f64b1d0bd7f72d8040047dcc8f" title="Setup the transaction.">setup()</a> - sends SetExpressCheckout API call returns a result signal.</li>
<li><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a2ad80f81c4915cb60d23f37747e435f3" title="Start the payment.">startPayment()</a> - Redirects to PayPal. Use it after receiving the <a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#aeb2b74f64b1d0bd7f72d8040047dcc8f" title="Setup the transaction.">setup()</a> result signal.</li>
<li>paymentApproved signal will be emitted with the result of SetExpressCheckout API call.</li>
<li><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#af492f716a03a12e5ceadbf4cf2b10587" title="Updates customer information from PayPal.">updateCustomerDetails()</a> - GetExpressCheckoutDetails API call returns a result signal.</li>
<li><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a93ef2abcdc87ff53780541621004b39a" title="Completes the payment.">completePayment()</a> - DoExpressCheckoutPayment API call returns a result signal.</li>
</ol>
<p>For an example, see the paypal feature example.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Payment_1_1PayPalService.html" title="This is a PayPal service class.">PayPalService</a> </dd></dl>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a86ef89b0183dc993aa74df5b1a590098"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::PaymentAction" ref="a86ef89b0183dc993aa74df5b1a590098" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098">Wt::Payment::PayPalExpressCheckout::PaymentAction</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enumeration for payment actions. </p>
<p>See more information at PayPal:</p>
<p><a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetExpressCheckout">https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;content_ID=developer/e_howto_api_nvp_r_SetExpressCheckout</a></p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a1cd7acb78f0708359291d2aaebeb9c5a" title="Sets the payment action.">setPaymentAction()</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a86ef89b0183dc993aa74df5b1a590098a9b457c8c1c30f26dc4868dd66502c513"></a><!-- doxytag: member="SaleAction" ref="a86ef89b0183dc993aa74df5b1a590098a9b457c8c1c30f26dc4868dd66502c513" args="" -->SaleAction</em>&nbsp;</td><td>
<p>A Sale action. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a86ef89b0183dc993aa74df5b1a590098a5c3b7b045ba0e4ea1fc754d7fe905606"></a><!-- doxytag: member="AuthorizationAction" ref="a86ef89b0183dc993aa74df5b1a590098a5c3b7b045ba0e4ea1fc754d7fe905606" args="" -->AuthorizationAction</em>&nbsp;</td><td>
<p>An Authorization action. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a86ef89b0183dc993aa74df5b1a590098a7487375acf600ebb23fc2b642597ffde"></a><!-- doxytag: member="OrderAction" ref="a86ef89b0183dc993aa74df5b1a590098a7487375acf600ebb23fc2b642597ffde" args="" -->OrderAction</em>&nbsp;</td><td>
<p>An <a class="el" href="classWt_1_1Payment_1_1Order.html" title="Contains information of a sales order.">Order</a> action. </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a93ef2abcdc87ff53780541621004b39a"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::completePayment" ref="a93ef2abcdc87ff53780541621004b39a" args="(const Money &amp;totalAmount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Result.html">Result</a> &gt; &amp; Wt::Payment::PayPalExpressCheckout::completePayment </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Payment_1_1Money.html">Money</a> &amp;&#160;</td>
          <td class="paramname"><em>totalAmount</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Completes the payment. </p>
<p>This is the last step of a PayPal checkout, which uses the PayPal DoExpressCheckoutPayment API call to confirm the payment.</p>
<p>This may update the exact amount (for example to reflect accurate shipping information knowing the customer's shipping address).</p>
<p>This is an asynchronous call, which returns a signal that is emitted when the call has finished. </p>

</div>
</div>
<a class="anchor" id="a7ee00bea934b09d1baf9210200571005"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::customer" ref="a7ee00bea934b09d1baf9210200571005" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1Payment_1_1Customer.html">Customer</a> &amp; Wt::Payment::PayPalExpressCheckout::customer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the customer information. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Payment_1_1Customer.html" title="Contains customer information.">Customer</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af359415775a5b86aa7422cef7c148600"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::order" ref="af359415775a5b86aa7422cef7c148600" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1Payment_1_1Order.html">Order</a> &amp; Wt::Payment::PayPalExpressCheckout::order </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the order information. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Payment_1_1Order.html" title="Contains information of a sales order.">Order</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acc60336c6a0d4d440e16ec4e91612fd8"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::paymentAction" ref="acc60336c6a0d4d440e16ec4e91612fd8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098">PayPalExpressCheckout::PaymentAction</a> Wt::Payment::PayPalExpressCheckout::paymentAction </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the payment action. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a1cd7acb78f0708359291d2aaebeb9c5a" title="Sets the payment action.">setPaymentAction()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a09e40455db060194805dff7b39f8313c"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::paymentApproved" ref="a09e40455db060194805dff7b39f8313c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Approval.html">Approval</a> &gt; &amp; Wt::Payment::PayPalExpressCheckout::paymentApproved </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The payment approval signal. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a2ad80f81c4915cb60d23f37747e435f3" title="Start the payment.">startPayment()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7b81e081261bdba4813224e0f0d57e16"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::setParameter" ref="a7b81e081261bdba4813224e0f0d57e16" args="(const std::string &amp;name, const std::string &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Payment::PayPalExpressCheckout::setParameter </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds or overrides a PayPal API request parameter. </p>
<p>If value is empty, then this will remove a request parameter.</p>
<p>Useful use examples: </p>
<div class="fragment"><pre class="fragment">  <span class="comment">//send to paypal - &amp;REQCONFIRMSHIPPING=1</span>
  <a class="code" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a7b81e081261bdba4813224e0f0d57e16" title="Adds or overrides a PayPal API request parameter.">setParameter</a>(<span class="stringliteral">&quot;REQCONFIRMSHIPPING&quot;</span>, 1);

 <span class="comment">//send to paypal - &amp;NOSHIPPING=1</span>
  <a class="code" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a7b81e081261bdba4813224e0f0d57e16" title="Adds or overrides a PayPal API request parameter.">setParameter</a>(<span class="stringliteral">&quot;NOSHIPPING&quot;</span>, 1);

 <span class="comment">//send to paypal - &amp;LOGOIMG=https://www.../logo.gif</span>
  <a class="code" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a7b81e081261bdba4813224e0f0d57e16" title="Adds or overrides a PayPal API request parameter.">setParameter</a>(<span class="stringliteral">&quot;LOGOIMG&quot;</span>, <span class="stringliteral">&quot;https://www.../logo.gif&quot;</span>);

 <span class="comment">//send to paypal - &amp;CARTBORDERCOLOR=00CD</span>
  <a class="code" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a7b81e081261bdba4813224e0f0d57e16" title="Adds or overrides a PayPal API request parameter.">setParameter</a>(<span class="stringliteral">&quot;CARTBORDERCOLOR&quot;</span>, <span class="stringliteral">&quot;00CD&quot;</span>);
</pre></div> 
</div>
</div>
<a class="anchor" id="a1cd7acb78f0708359291d2aaebeb9c5a"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::setPaymentAction" ref="a1cd7acb78f0708359291d2aaebeb9c5a" args="(PaymentAction action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Payment::PayPalExpressCheckout::setPaymentAction </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a86ef89b0183dc993aa74df5b1a590098">PaymentAction</a>&#160;</td>
          <td class="paramname"><em>action</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the payment action. </p>
<p>The default payment action is SaleAction. </p>

</div>
</div>
<a class="anchor" id="aeb2b74f64b1d0bd7f72d8040047dcc8f"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::setup" ref="aeb2b74f64b1d0bd7f72d8040047dcc8f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Result.html">Result</a> &gt; &amp; Wt::Payment::PayPalExpressCheckout::setup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Setup the transaction. </p>
<p>This uses the PayPal SetExpressCheckout API call to initiate the payment process, preparing things for a subsequent call to <a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a2ad80f81c4915cb60d23f37747e435f3" title="Start the payment.">startPayment()</a>.</p>
<p>This is an asynchronous call, which returns a signal that is emitted when the call has finished. </p>

</div>
</div>
<a class="anchor" id="a2ad80f81c4915cb60d23f37747e435f3"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::startPayment" ref="a2ad80f81c4915cb60d23f37747e435f3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Payment::PayPalExpressCheckout::startPayment </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Start the payment. </p>
<p>This redirects to PayPal. It should be directly connected to a clicked event (on the PayPal button), to allow a JavaScript popup window to be used.</p>
<p>This is an asynchronous call, whose result will be indicated using the <a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a09e40455db060194805dff7b39f8313c" title="The payment approval signal.">paymentApproved()</a> signal. </p>

</div>
</div>
<a class="anchor" id="af492f716a03a12e5ceadbf4cf2b10587"></a><!-- doxytag: member="Wt::Payment::PayPalExpressCheckout::updateCustomerDetails" ref="af492f716a03a12e5ceadbf4cf2b10587" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Payment_1_1Result.html">Result</a> &gt; &amp; Wt::Payment::PayPalExpressCheckout::updateCustomerDetails </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Updates customer information from PayPal. </p>
<p>This fetches customer information that is kept at PayPal for the current user. This call is optional, and can be used only after the user approved the payment (see <a class="el" href="classWt_1_1Payment_1_1PayPalExpressCheckout.html#a09e40455db060194805dff7b39f8313c" title="The payment approval signal.">paymentApproved()</a>).</p>
<p>This uses the PayPal GetExpressCheckoutDetails API call.</p>
<p>This is an asynchronous call, which returns a signal that is emitted when the call has finished. </p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>