I have set up a query string to pass info through to paypal and all work fine apart from the address override feature. It will not automatically update the delivery address with the new one posted from the form.
I want to be able to override for both existing and new accounts
The code is as follows:
$queryString = "?cmd=_xclick";
$queryString .= "&upload=1";
$queryString .= "&charset=utf-8";
$queryString .= "¤cy_code=GBP";
$queryString .= "&business=loyal_1326448684_biz@sowebdesign.com";
$queryString .= "&return=http://groupon.english-sofas.co.uk/english-groupon/groupon-success.php";
$queryString .= "¬ify_url=http://groupon.english-sofas.co.uk/english-groupon/paypal-groupon-ipn.php";
$queryString .= "&item_name= $itemname";
$queryString .= "&item_number= $id";
$queryString .= "&amount=$delivery";
$queryString .= "&custom=$grouponcode";
$queryString .= "&address_override=true";
$queryString .= "&first_name=$fname";
$queryString .= "&last_name=$lname";
$queryString .= "&address_street=$add1";
$queryString .= "&address_city=$city";
$queryString .= "&address_zip=$post";
$queryString .= "&address_country=$country";
$paypalstring = "https://sandbox.paypal.com/cgi-bin/web-scr" . $queryString;