我们使用MassPay API向用户发送付款。 我们的系统的工作方式是每个MassPay批次只包含一次付款。
我们的问题是它并不完全清楚MassPay IPN状态如何运作。
PayPal文档说有3种类型的IPN - 失败,已处理和已完成。
我不明白pay_status和status1的哪些状态组合是可能的:
payment_status = DENIED
和status1 = Completed
)吗?status1 = FAILED
或BLOCKED
的IPN是否总是有payment_status = DENIED
,反之亦然?payment_status = PROCESSED and status1 = COMPLETED
)是否总是在带有(payment_status = COMPLETED and status1 = COMPLETED
)的IPN之前?如果是,仅仅检查(payment_status = COMPLETED and status1 = COMPLETED
)以将支出标记为我们系统上的“成功”是否足够?status1 = REVERSED or RETURNED
的IPN是否始终有payment_status = COMPLETED
?status1 = PENDING
的IPN是否总是有payment_status = PROCESSED
?更具体地说,有助于了解哪个payment_status和status1组合甚至是可能的,以及每个可能的状态对的含义是什么?
请参阅附表1
以下是文字表格:
payment_status status1 Is Combination Possible? Meaning
Processed Blocked ?
Processed Pending ?
Processed Unclaimed YES
Processed Reversed ?
Processed Completed YES Will this always have COMPLETED+COMPLETED afterwards?
Processed Failed ?
Processed Returned ?
Denied Blocked ?
Denied Pending ?
Denied Unclaimed ?
Denied Reversed ?
Denied Completed ?
Denied Failed ?
Denied Returned ?
Completed Blocked ?
Completed Pending ?
Completed Unclaimed ?
Completed Reversed ?
Completed Completed YES Will this always be after Processed+Completed IPN?
Completed Failed ?
Completed Returned YES