我已经实现了django PayPal IPN,并且在收到的ipn方面遇到了一些困难。任何人都可以提供相关信息吗?它支持哪些功能?
答案 0 :(得分:0)
通常,IPN处理将处理以下事项,
这是典型的IPN消息,您的Django脚本将用于处理来自PayPal的这些HTTP帖子,并基于它们处理订单管理操作(例如更新DB)
transaction_subject =安培; PAYMENT_DATE = 20%3A08%3A00 +月+ 01%2C + 2015 + PDT&安培;姓氏= US&安培; residence_country = US&安培; ITEM_NAME =测试+描述%3A +批次+注册&安培; payment_gross = -10.00&安培; mc_currency = USD&安培; payment_type =即时&安培; protection_eligibility =不合格的&安培; verify_sign = AmDuhskOW4nHRQzwOcT1kVh.Nd7aA8jucGH77Q.R4aiejb1M3rSyseJs&安培;的test_ipn = 1&安培; PAYER_EMAIL = USP%40email.com&安培; txn_id = 77R67849J7462684N&安培; RECEIVER_EMAIL =国家汉办%40paypal.com&安培;如first_name =付款人安培; parent_txn_id = 5GY14152509151407&安培;发票= INV-KZXY-BATCH002&安培; payer_id = 8FMFQ2KVYYHTY&安培; receiver_id = XPKMZXNEA2GXU&安培; REASON_CODE =退款&安培; ITEM_NUMBER =安培; handling_amount = 0.00&安培; PAYMENT_STATUS =退还&安培; payment_fee = -0.39&安培; mc_fee = -0.39&安培;航运= 0.00&安培; mc_gross = -10.00&安培;定制=测试+定制%3A + KZXY&安培;字符集= UTF-8和; notify_version = 3.8&安培; ipn_track_id = 58d1b52cca4ad
正如Django或PayPal推荐的那样,使用Sandbox环境和PayPal IPN模拟器测试你的功能总是很容易,你可能已经走过了the Django IPN docs,以防你需要任何细节,你会得到一切。