4

我正在使用 PayPal IPN 在我的网站上处理付款。我希望用户能够输入折扣代码和传递给 PayPal 并计算的值(金额或百分比)。

我一直在网上寻找,但似乎只能找到以下内容:

Use discount_amount_cart to charge a single discount amount for the entire cart.

Use discount_amount_x to set a discount amount associated with item x

Use discount_rate_cart to charge a single discount percentage for the entire cart.

discount_rate_cart - Applies to entire cart however, this variable will only work with the "Upload" Method. Not the standard Add to Cart variables.

在我的请求字符串中测试了这些之后:

...&discount_amount_cart=10&...

PayPal 似乎不承认这个折扣。这在 PayPal IPN 中是否真的存在?

感谢您的帮助!

4

2 回答 2

6

是的你可以!!!

这是 Paypal 变量的完整列表以及相关文档。

我自己刚刚使用了 discount_amount_cart!

https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#id08A6HH0D0TA

于 2013-06-10T16:39:50.190 回答
-2

不 !PayPal 不提供任何折扣,您需要在应用程序中手动计算折扣并将其发送到 paypal。我开发了一个 Ruby on Rails 应用程序,它使用 Stripe 和 PayPal 计算帐单信息。顺便问一下,您使用哪种语言进行编程?这样我就可以帮助您更多地了解如何去做。

于 2012-12-27T10:38:12.503 回答