3

我正在使用效果很好的 PayPal url 方法,但是当我尝试收取税款时,它似乎只将税款应用于所有商品的总价值,而我想对总商品 + 运费收取税款,即

商品 $100.00,运费 $20.00,小计 $120.00,税 (10%) $12.00,总计 $132.00

这就是我所拥有的 https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart&business=xxxxxxxxxxxxxx_biz@gmail.com&button_subtype=services&upload=1&no_note=1¤cy_code=USD&rm=1&item_name_1=Product1&amount_1=200.00&quantity_1=2&item_name_2= Product2&amount_2=200.00&quantity_2=22&shipping_2=6&tax_1=10&tax_2=10&return=http://staging.xxxx.com/store/success.aspx&cancel_return=http://staging.xxxx.com/store/failed.aspx

4

1 回答 1

2

我对税收变量进行了更改以应用税率而不是金额。目前 PayPal 不收取包括运费在内的税费,因为服务通常不征税。

如果这是一项要求,我建议在将帖子发送到 PayPal 之前计算您网站上的总税额。可以在 tax_1 字段中输入该值。我在第二篇文章中展示了一个例子。

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart
&business=xxxxxxxxxxxxxx_biz@gmail.com
&button_subtype=services
&upload=1
&no_note=1
&currency_code=USD
&rm=1
&item_name_1=Product1
&amount_1=200.00
&quantity_1=2
&item_name_2=Product2
&amount_2=200.00
&quantity_2=2
&shipping_2=6
&tax_rate_1=10
&tax_rate_2=10
&return=http://staging.xxxx.com/store/success.aspx
&cancel_return=http://staging.xxxx.com/store/failed.aspx

这是一个计算金额的示例。请注意,您只发送一个税额,而不是每个项目的税额。PayPal 不会向客户显示分项税额,因此不会对客户产生影响。

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart
&business=xxxxxxxxxxxxxx_biz@gmail.com
&button_subtype=services
&upload=1
&no_note=1
&currency_code=USD
&rm=1
&item_name_1=Product1
&amount_1=200.00
&quantity_1=2
&item_name_2=Product2
&amount_2=200.00
&quantity_2=2
&shipping_2=6
&tax_1=10
&return=http://staging.xxxx.com/store/success.aspx
&cancel_return=http://staging.xxxx.com/store/failed.aspx
于 2013-03-11T17:14:40.037 回答