当通过RESTAPI创建订单时,将忽略帐户上的PayPal增值税设置

2024-05-15 05:04:30 发布

您现在位置:Python中文网/ 问答频道 /正文

如何让PayPal确定销售税是否适用于销售,并在通过RESTAPI创建订单时相应地调整总额?你知道吗

我找到了this question,它只是询问如何实现这一点,但我相信这个问题的答案可以找到here,它指示帐户所有者更新其增值税设置。你知道吗

这已经完成了,但是当一个拥有州内地址的用户登录/注销时,PayPal网站上显示的(和收费的)总额并没有更新。你知道吗

根据documentation,我使用文档中linked to的Python SDK发送以下数据结构来创建订单:

{
    "intent": "sale",
    "payer": {
        "payment_method": "paypal"
    },
    "redirect_urls": {
        "return_url": 'http://www.myreturnurl.com',
        "cancel_url": 'http://www.mycancelurl.com'
    },
    "transactions": [{
        "item_list": {
            "items": cart_contents
        },
        "amount": {
            "total": order_total,
            "currency": "USD",
            "details": {
                "subtotal": subtotal,
                #"tax": "0.00",
                "shipping": shipping
            }
        },
        "description": "This is the payment transaction description."
    }]
}

我希望注释掉tax键将允许PayPal帐户设置确定和应用税收。PayPal社区帮助论坛上对this question的回答让我相信,通过发送0.00税,我覆盖了配置文件的销售税设置,通过从提交中删除这个设置,帐户设置将被应用。你知道吗

情况似乎并非如此。我无法将帐户的增值税设置应用于订单。我怎样才能做到这一点?你知道吗


Tags: 订单comhttpurlwww帐户paymentthis
1条回答
网友
1楼 · 发布于 2024-05-15 05:04:30

事实证明,PayPal不支持使用restapi(截至本文撰写时)通过配置文件设置进行税务计算。你知道吗

根据与第2层PayPal商户技术支持代表的通信:

Running through the Rest playground using my credentials, I seemed to run across the same behavior. I then tried using ExpressCheckout calls with the same results. When I tried using PayPal standard (buy now button) the tax calculated when I got to PayPal.

I asked around and was told the profile only works with standard and you need to pass the tax over if using different methods as the functionality wasn't included at this point.

相关问题 更多 >

    热门问题