4

ウェブサイトでの支払いの処理にPayPalIPNを使用しています。ユーザーが割引コードと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はこの割引を認識していないようです。これは実際にPayPalIPNにもう存在しますか?

ご協力いただきありがとうございます!

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に送信する必要があります。StripeとPayPalを使用して請求情報を計算するRubyonRailsアプリケーションを開発しました。ちなみに、あなたはどの言語でプログラミングしていますか?だから私はそれのために行く方法についてあなたをもっと助けることができます。

于 2012-12-27T10:38:12.503 に答える