【问题标题】:Taxes on PayPal submit在 PayPal 上提交税款
【发布时间】:2013-06-26 03:18:22
【问题描述】:

我正在使用 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

在 IPN 上:

$tax = $_POST['tax'];

但是即使在贝宝网站上也不收费,所以税没有达到 IPN。必须在我的查询字符串上的请愿书上,但不知道为什么。

我说过,其余的代码可以工作,但不能征税。

问候和感谢。

【问题讨论】:

    标签: php paypal paypal-ipn


    【解决方案1】:

    我假设您使用的是网站付款标准,但您使用的是什么类型的按钮?有些按钮不允许税或运费?您是要对整个购物车还是只对一件商品征税?尝试使用变量tax_cart

    【讨论】:

    • 按钮为“_xclick”类型。直到星期一我才能测试它,但我会评论我的结果。
    • 您能否提供您发送到 PayPal 的整个字符串。 (变量和值)
    • ?business=info%40example.com&item_name=Monocaja+Tapas&amount=29.95&tax=&custom=2%7Cm-11%7C94%2C84%2C64%2C66%2C13%2C8%2C7%2C29&cmd=_xclick¤ cy_code=EUR&bn=button_BuyNow_WPS_ES&address=ddvcxvcx&city=ddd&country=Eslovenia&zip=dd&first_name=dd&last_name=dd&email=javier%40myemail.es&state=dd&on0=gi&os0=0&on1=at&os1=&on2=tx&os2=&on3=ni&os3=700000000B&ont4=os=ic 2C+how+are+you%3F&return=http%3A%2F%2Fwww.example.com%2Fthank-you%2F&cancel_return=http%3A%2F%2Fwww.example.com%2F%3Fcancel%3D1¬ify_url=http% 3A%2F%2Fmy-ipn.php
    • (我替换了个人数据)怎么说呢,税收没有从表格中添加,所以它没有到达“to-paypal”脚本: (tax_cart 都不是)
    猜你喜欢
    • 2014-01-27
    • 2020-03-12
    • 1970-01-01
    • 2010-12-14
    • 2011-05-07
    • 2013-08-01
    • 2021-01-15
    • 2013-10-19
    • 2021-05-21
    相关资源
    最近更新 更多