gpt4 book ai didi

paypal ipn payment_status 已处理与已完成

转载 作者:太空宇宙 更新时间:2023-11-03 15:39:01 26 4
gpt4 key购买 nike

我是 paypal 集成的新手,现在正在做 ipn 集成。

根据他们的网站,我对 payment_status processed 和 completed 值有点困惑。

Completed: The payment has been completed, and the funds have been added successfully to your account balance.

Processed: A payment has been accepted.

真的不明白吗?

这是我的问题

  1. 如果它发送一个付款状态已处理的 ipn,它会发送另一个已完成付款状态的 ipn?
  2. 什么时候发送一个处理过的ipn,什么时候发送一个完成的互联网?
  3. 您应该考虑哪种状态的项目已付款?完成或处理?

提前致谢

最佳答案

我敢肯定,您看到处理的唯一情况是您将付款发送到一个尚不存在的帐户,或者如果您发送到一个帐户,他们的设置配置为接受任何他们收到的款项。

在这种情况下,当付款发生时,它的“status_n”将是“unclaimed”,并且 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 帐户。

这是一个 MassPay 请求的单独 IPN,其中包括 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 显示它已完成。

长话短说,在处理付款后处理时,我会确保查找“已完成”而不是“已处理”。

关于paypal ipn payment_status 已处理与已完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14108776/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com