为什么要将运费添加到我的 PayPal IPN 响应中?

问题描述 投票:0回答:1

为什么要将运费添加到我的 IPN 响应中?这已经工作多年,但突然间我们的一些 IPN 请求包含运输参数,例如下面的 17.01 我们从不发送任何关于运输的信息。这应该是总金额 567.01(这是 550.00 美元的正常价格加上 17.01 美元的手续费)。然后,它又添加了 17.01 作为运费,以低于这 584.02 美元。 PayPal 是否有办法在任何第三方重定向之外添加运费?

mc_gross=584.02&invoice=926454&protection_eligibility=Eligible&payer_id=test&payment_date=08%3A27%3A24+Mar+05%2C+2023+PST&payment_status=Completed&charset=windows-1252&first_name=test&mc_fee=12.11&notify_version=3.9&custom=926454&payer_status=unverified&business=test%40yahoo.com&quantity=1&verify_sign=test&payer_email=test2%40outlook.com&txn_id=test&payment_type=instant&last_name=test&receiver_email=test%40yahoo.com&payment_fee=12.11&shipping_discount=0.00&insurance_amount=0.00&receiver_id=test&txn_type=web_accept&item_name=test&discount=0.00&mc_currency=USD&item_number=&residence_country=US&receipt_id=test&shipping_method=Store+Pickup&transaction_subject=&payment_gross=584.02&shipping=17.01&ipn_track_id=test
paypal paypal-ipn
1个回答
0
投票

如果运费在 PayPal IPN 消息中,则表示它是 PayPal 交易的一部分。

如果运费是 PayPal 交易的一部分,并且该交易是 legacy PayPal Payments Standard 类型,运费可能来自 PayPal 账户的profile shipping and tax

如果它不是来自已在 PayPal 帐户中设置的个人资料运输和税收,则必须在交易时指定它,作为将付款人从您的网站重定向到 PayPal 的按钮或表格/数据帖子的一部分.


以上所有内容(包括 IPN 本身的使用,应该很快就会弃用)适用于使用约 20 年历史的技术的非常古老的集成。如果可能的话,任何新的开发都应该升级到 current PayPal Checkout Integration。 在各个方面都更新了好几代。

© www.soinside.com 2019 - 2024. All rights reserved.