<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://drewjoh.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://drewjoh.com/wiki/feed.php">
        <title>Wiki</title>
        <description></description>
        <link>http://drewjoh.com/wiki/</link>
        <image rdf:resource="http://drewjoh.com/wiki/lib/images/favicon.ico" />
       <dc:date>2009-01-06T13:50:06-06:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://drewjoh.com/wiki/code/classes/phppaypal?rev=1197867068&amp;do=diff"/>
                <rdf:li rdf:resource="http://drewjoh.com/wiki/code/classes/phppaypal/examples/refundtransaction?rev=1197867000&amp;do=diff"/>
                <rdf:li rdf:resource="http://drewjoh.com/wiki/code/classes/phppaypal/examples/gettransactiondetails?rev=1197866698&amp;do=diff"/>
                <rdf:li rdf:resource="http://drewjoh.com/wiki/code/classes/phppaypal/examples/dodirectpayment?rev=1197802838&amp;do=diff"/>
                <rdf:li rdf:resource="http://drewjoh.com/wiki/code/classes/phppaypal/examples/doexpresscheckoutpayment?rev=1197802747&amp;do=diff"/>
                <rdf:li rdf:resource="http://drewjoh.com/wiki/code/classes/phppaypal/examples/getexpresscheckoutdetails?rev=1197801482&amp;do=diff"/>
                <rdf:li rdf:resource="http://drewjoh.com/wiki/code/classes/phppaypal/examples/setexpresscheckout?rev=1193890593&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://drewjoh.com/wiki/lib/images/favicon.ico">
        <title>Wiki</title>
        <link>http://drewjoh.com/wiki/</link>
        <url>http://drewjoh.com/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://drewjoh.com/wiki/code/classes/phppaypal?rev=1197867068&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-12-16T22:51:08-06:00</dc:date>
        <title>code:classes:phppaypal</title>
        <link>http://drewjoh.com/wiki/code/classes/phppaypal?rev=1197867068&amp;do=diff</link>
        <description>(PHP 5) - This has not been tested with PHP 4.

You can download this class from the Google Code project downloads page.

To report an issue, please go to the Google Code project issues page.

For help and questions, please visit the Google Groups Discussion.</description>
    </item>
    <item rdf:about="http://drewjoh.com/wiki/code/classes/phppaypal/examples/refundtransaction?rev=1197867000&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-12-16T22:50:00-06:00</dc:date>
        <title>code:classes:phppaypal:examples:refundtransaction - created</title>
        <link>http://drewjoh.com/wiki/code/classes/phppaypal/examples/refundtransaction?rev=1197867000&amp;do=diff</link>
        <description>Notes

 none

Request


// Create instance of the phpPayPal class
$paypal = new YipPayPal();

// Set the required fields	
$paypal-&gt;transaction_id = '9KA25373R3947621C';
$paypal-&gt;refund_type = 'Full';
$paypal-&gt;amount_total = '50.00';
$paypal-&gt;note = 'Customer did not want items';

// Make the request
$paypal-&gt;RefundTransaction();</description>
    </item>
    <item rdf:about="http://drewjoh.com/wiki/code/classes/phppaypal/examples/gettransactiondetails?rev=1197866698&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-12-16T22:44:58-06:00</dc:date>
        <title>code:classes:phppaypal:examples:gettransactiondetails - created</title>
        <link>http://drewjoh.com/wiki/code/classes/phppaypal/examples/gettransactiondetails?rev=1197866698&amp;do=diff</link>
        <description>Notes

Request


// Create instance of the phpPayPal class
$paypal = new phpPayPal();


// Set the transaction_id (required)
$paypal-&gt;transaction_id = '9KA25373R3947621C';

// Perform the payment
$paypal-&gt;GetTransactionDetails();


For more information on field descriptions, requirements and corresponding PayPal fields, see the parameters list.</description>
    </item>
    <item rdf:about="http://drewjoh.com/wiki/code/classes/phppaypal/examples/dodirectpayment?rev=1197802838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-12-16T05:00:38-06:00</dc:date>
        <title>code:classes:phppaypal:examples:dodirectpayment</title>
        <link>http://drewjoh.com/wiki/code/classes/phppaypal/examples/dodirectpayment?rev=1197802838&amp;do=diff</link>
        <description>Notes

Request


// Create instance of the phpPayPal class
$paypal = new phpPayPal();

// (required)
$paypal-&gt;ip_address = $_SERVER['REMOTE_ADDR'];

// Order Totals (amount_total is required)
$paypal-&gt;amount_total = '56.48';
$paypal-&gt;amount_shipping = '5.99';

// Credit Card Information (required)
$paypal-&gt;credit_card_number = '1234123412341234';
$paypal-&gt;credit_card_type = 'Visa';
$paypal-&gt;cvv2_code = '123';
$paypal-&gt;expire_date = '112008';

// Billing Details (required)
$paypal-&gt;first_name = '…</description>
    </item>
    <item rdf:about="http://drewjoh.com/wiki/code/classes/phppaypal/examples/doexpresscheckoutpayment?rev=1197802747&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-12-16T04:59:07-06:00</dc:date>
        <title>code:classes:phppaypal:examples:doexpresscheckoutpayment</title>
        <link>http://drewjoh.com/wiki/code/classes/phppaypal/examples/doexpresscheckoutpayment?rev=1197802747&amp;do=diff</link>
        <description>Notes

 NOTICE - When adding items, the amount_items variable will be calculated automatically, but the amount_tax and amount_total variables are NOT calculated automatically based on the items amount and tax values. This is because there can be certain cases when the amount_tax will not just be the amount of all the tax amounts of the items.</description>
    </item>
    <item rdf:about="http://drewjoh.com/wiki/code/classes/phppaypal/examples/getexpresscheckoutdetails?rev=1197801482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-12-16T04:38:02-06:00</dc:date>
        <title>code:classes:phppaypal:examples:getexpresscheckoutdetails - added payer_id to code example</title>
        <link>http://drewjoh.com/wiki/code/classes/phppaypal/examples/getexpresscheckoutdetails?rev=1197801482&amp;do=diff</link>
        <description>Notes

 none

Request


// Create instance of the phpPayPal class
$paypal = new YipPayPal();

// Add the token (stored from the SetExpressCheckout call) to the class before we make the call
$paypal-&gt;token = $USER_SESSION-&gt;token;

// Make the request
$paypal-&gt;GetExpressCheckoutDetails();

// Store the payer_id - you will need this to complete the transaction
$_SESSION['payer_id'] = $paypal-&gt;payer_id;</description>
    </item>
    <item rdf:about="http://drewjoh.com/wiki/code/classes/phppaypal/examples/setexpresscheckout?rev=1193890593&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-10-31T23:16:33-06:00</dc:date>
        <title>code:classes:phppaypal:examples:setexpresscheckout</title>
        <link>http://drewjoh.com/wiki/code/classes/phppaypal/examples/setexpresscheckout?rev=1193890593&amp;do=diff</link>
        <description>Notes

 If the SetExpressCheckout() request is successful, you will receive a token back, which you need to store, and after which you need to call SetExpressCheckoutSuccessfulRedirect() to redirect the customer to PayPal to proceed.

Request


// Create instance of the phpPayPal class
$paypal = new phpPayPal();

// Set the amount total for this order.
$paypal-&gt;amount_total = '50.49';

// You can manually set the return and cancel URLs, or keep the one's pre-set in the class definition
$paypal-&gt;…</description>
    </item>
</rdf:RDF>
