如何在 Paypal IPN Checkout 中添加税款

发布于 2024-08-10 16:57:41 字数 58 浏览 2 评论 0原文

我尝试添加“税”字段,但是结帐中没有显示任何与税务相关的内容。如何将税额添加到 Paypal 结账中?

I've tried adding the "tax" field, however nothing tax related shows up in my checkout. How do I add the tax amount to my checkout for Paypal?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陈甜 2024-08-17 16:57:41

我猜你现在找到了答案,但为了其他人通过谷歌找到这个问题:

如果你试图向购物车添加税,变量名称从“tax”更改为“tax_cart” ,如此(8% 税):

<input type="hidden" name="tax_cart" value="<?php echo number_format(($price * 0.08),2); ?>">

I'm guessing you found an answer by now, but for the sake of the other people finding this question through Google:

If you're trying to add tax to a shopping cart, the variable name changes from "tax" to "tax_cart", as so (for 8% tax):

<input type="hidden" name="tax_cart" value="<?php echo number_format(($price * 0.08),2); ?>">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文