Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php PayPal提交的税收_Php_Paypal_Paypal Ipn - Fatal编程技术网

Php PayPal提交的税收

Php PayPal提交的税收,php,paypal,paypal-ipn,Php,Paypal,Paypal Ipn,我正在使用一个php文件将用户的数据(从以前的网站表单中获取)发送到PayPal。除“税务”字段外的所有工作 我不知道我是否做错了什么,我的代码是: // by code: querystring = ?business=blabla&item_name=bla.... (all this works) if ($country_data['extra_tax'] != '0.00') $querystring .= "tax=".urlencode($country_data['

我正在使用一个php文件将用户的数据(从以前的网站表单中获取)发送到PayPal。除“税务”字段外的所有工作

我不知道我是否做错了什么,我的代码是:

// by code: querystring = ?business=blabla&item_name=bla.... (all this works)
if ($country_data['extra_tax'] != '0.00')
   $querystring .= "tax=".urlencode($country_data['extra_tax'])."&";
// and more and more code until redirect to paypal
关于知识产权:

$tax = $_POST['tax'];
但它甚至在贝宝网站上也不收费,所以税没有达到IPN。一定在我的请愿书上,但不知道为什么

我是这么说的,代码的其余部分是有效的,但不是税


问候和感谢。

我假设您使用的是网站支付标准,但您使用的是哪种类型的按钮?有些按钮不允许纳税或运输?您是想对整个购物车征税还是只对一件物品征税?尝试使用变量
tax\u cart

按钮为“\u xclick”类型。星期一之前我不能测试它,但是我会评论我的结果。你能提供你发送给PayPal的整个字符串吗。(变量和值)4.95及税务和海关=2%7Cm-11%7 C94%2C84%2%2%2%7%7%7%7%C94%2%2%2%C 84%2%2%6%2%6%2%2%6%2%2%6%2%6%2%6%2%2%2%2%2%2%2%2%2%6%2%2%2%2%2%6%2%2%2%2%2%6%2%2%2%2%2%2%2%2%2%2%2%8%8%8%2%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%8%7 7%7%7%7%7%7%7%7%7%7%7%7%四,=ic&os4=8&on5=dt&os5=Hi%2C+how+are+you%3F&return=http%3A%2F%2Fwww.example.com%2F谢谢你%2F&cancel\u return=http%3A%2F%2Fwww.example.com%2F%3Fcancel%3D1¨ify\u url=http%3A%2F%2Fmy ipn.php(我替换了个人数据)我是怎么说的,税不是从表格中加的,所以它没有到达“给贝宝”的脚本:(也不是税车)