Thread: Paypal SDK
View Single Post
Old 05-03-2006, 08:30 PM   #1 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 151
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Paypal SDK

I'm looking into using Website Payments Pro through paypal for transactions, but I'm having a little difficulty understanding everything. There's always been this stigma in regard to accepting online transactions for me. Anyway, I'm looking through example code and came across the following:
PHP Code:
<?php

require_once './request_base.php';

$avrt =& Services_PayPal::getType('AddressVerifyRequestType');
$avrt->setEmail('sdk-buyer@sdk.com');
$avrt->setZip('95100');
$avrt->setStreet('123 Main St');

$response $caller->AddressVerify($avrt);
var_dump($response);
?>
I've never seen the =& operator, what is that line doing? From the looks of it, that line is initiating a new instance of the Services_PayPal object? Obviously the following lines set the address of the buyer, and send it off for verification?
__________________
Current Project
Redline is offline   Reply With Quote