贝宝地址覆盖不起作用 [英] Paypal Address Override not working
问题描述
我已经设置了一个查询字符串来将信息传递给贝宝,除了地址覆盖功能外,所有工作都很好.它不会使用从表单中发布的新地址自动更新送货地址.
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
代码如下:
$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;
推荐答案
我不确定您在哪里找到address_street"、address_city",但这些都不正确.
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables
I'm not sure where you found "address_street", "address_city", but these are not correct.
The correct parameters are listed on "HTML Variables for Filling Out PayPal Checkout Pages Automatically" in https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables
这篇关于贝宝地址覆盖不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!