Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/shop/SetExpressCheckout.php

This is the main web page for the Express Checkout sample.
The page allows the user to enter amount and currency type.
It also accept input variable paymentType which becomes the
value of the PAYMENTACTION parameter.

When the user clicks the Submit button, ReviewOrder.php is

Called by index.html.

Calls ReviewOrder.php.

// clearing the session before starting new API Call

	$paymentType = $_GET['paymentType'];

    <title>PayPal PHP SDK - ExpressCheckout API</title>
    <link href="sdk.css" rel="stylesheet" type="text/css" />
	<form action="ReviewOrder.php" method="POST">
	<input type=hidden name=paymentType value='<?=$paymentType?>' >

	<span id=apiheader>SetExpressCheckout</span>

    <table class="api">

           <td colspan="2">
                You must be logged into <a href="https://developer.paypal.com" id="PayPalDeveloperCentralLink"  target="_blank">Developer
                    Central<br / </a> </br>
            <td class="field">
                <input type="text" name="paymentAmount" size="5" maxlength="7" value="1.00" />
                <select name="currencyCodeType">
                <option value="USD">USD</option>
                <option value="GBP">GBP</option>
                <option value="EUR">EUR</option>
                <option value="JPY">JPY</option>
                <option value="CAD">CAD</option>
                <option value="AUD">AUD</option>
            <td> </br></br>
                <input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" />
                Save time. Pay securely without sharing your financial information.
    <a class="home" id="CallsLink" href="index.html">Home</a>
Return current item: Simple PHP Shopping cart - asaancart