我是paypal集成的新手,现在正在进行ipn集成
我对payment_status已处理和已完成的值感到有点困惑
根据他们的网站
已完成:付款已完成,资金已经完成 已成功添加到您的帐户余额中。
已处理:已接受付款。
真的不明白吗?
这是我的问题
提前致谢
答案 0 :(得分:8)
我很确定您看到处理的唯一时间是您是否向尚不存在的帐户发送付款,或者如果您发送到他们已将其设置配置为让他们接受任何帐户的帐户他们收到的付款。
在这种情况下,当付款发生时,它将具有“无人认领”的“status_n”,并且将处理payment_status。请注意,如果您的金额超过1,则n将是付款的数量。例如,使用MassPay。事实上,这是我能够在我的IPN日志中找到的样本......
txn_type = masspay
payment_gross_1 = 1500.00
payment_date = 09:52:38 Dec 23, 2012 PST
last_name = Angell
mc_fee_1 = 1.00
masspay_txn_id_1 = 9N3213015V198645H
receiver_email_1 = info@acexlogics.com
residence_country = US
verify_sign = AueDyRcHXo48zG3juE2C-Z801Wi9AhrDKrUI2Dxtkt8T9UVV4DHECvEC
payer_status = verified
test_ipn = 1
payer_email = sandbo_1215254764_biz@angelleye.com
first_name = Drew
payment_fee_1 = 1.00
payer_id = ATSCG2QMC9KAU
payer_business_name = Drew Angell's Test Store
payment_status = Processed
status_1 = Unclaimed
mc_gross_1 = 1500.00
charset = windows-1252
notify_version = 3.7
mc_currency_1 = USD
unique_id_1 = 3
ipn_track_id = a8817fe5573f3
此特定IPN来自仅包含一个接收器的MassPay请求。它以“已处理”和“无人认领”的形式返回,因为receiver_email尚未拥有现有的PayPal帐户。
这是一个单独的IPN用于MassPay请求,其中包括3个接收者,并且所有人都有帐户,所以他们都回来了。
[payer_id] => ATSCG2QMC9KAU
[payment_date] => 21:37:28 Jan 01, 2013 PST
[payment_gross_1] => 10.00
[payment_gross_2] => 10.00
[payment_gross_3] => 10.00
[payment_status] => Processed
[receiver_email_1] => andrew_1342623385_per@angelleye.com
[receiver_email_2] => usb_1329725429_biz@angelleye.com
[charset] => windows-1252
[receiver_email_3] => andrew_1277258815_per@angelleye.com
[mc_currency_1] => USD
[masspay_txn_id_1] => 53E82259BP7975932
[mc_currency_2] => USD
[masspay_txn_id_2] => 4AS03088H50506411
[mc_currency_3] => USD
[masspay_txn_id_3] => 6A492363UM676994C
[first_name] => Drew
[unique_id_1] =>
[notify_version] => 3.7
[unique_id_2] =>
[unique_id_3] =>
[payer_status] => verified
[verify_sign] => A2Kn5CkYqzBOhX.t-MhTsUEnQbXNAs-mp6LyPmPY1bKAQnyPlKUqiOZN
[payer_email] => sandbo_1215254764_biz@angelleye.com
[payer_business_name] => Drew Angell's Test Store
[last_name] => Angell
[status_1] => Completed
[status_2] => Completed
[status_3] => Completed
[txn_type] => masspay
[mc_gross_1] => 10.00
[mc_gross_2] => 10.00
[mc_gross_3] => 10.00
[payment_fee_1] => 0.20
[residence_country] => US
[test_ipn] => 1
[payment_fee_2] => 0.20
[payment_fee_3] => 0.20
[mc_fee_1] => 0.20
[mc_fee_2] => 0.20
[mc_fee_3] => 0.20
[ipn_track_id] => e1938454f1e98
我没有时间设置帐户不存在然后创建和接受的方案,但我相当肯定你确实会得到另一个IPN,表明它已经完成。
长话短说,我会确保在处理后付款处理时寻找“已完成”以反对“已处理”。