We are sending payouts to our users with the MassPay API. Our system works in a way that each MassPay batch includes only a single payment.
Our problem is that its not entirely clear how the MassPay IPN statuses work.
The PayPal docs say that there are 3 types of IPNs - Failed, Processed and Completed.
What I don't understand is which status combinations of payment_status and status1 are possible:
- Can an IPN return (
payment_status = DENIED
andstatus1 = Completed
)? - Will an IPN with
status1 = FAILED
orBLOCKED
always have apayment_status = DENIED
and vice versa? - Will a (
payment_status = PROCESSED and status1 = COMPLETED
) always come before an IPN with (payment_status = COMPLETED and status1 = COMPLETED
)? If yes, is it enough to only check for (payment_status = COMPLETED and status1 = COMPLETED
) to mark the payout as 'success' on our system? - Will an IPN with
status1 = REVERSED or RETURNED
always havepayment_status = COMPLETED
? - Will an IPN with
status1 = PENDING
always have apayment_status = PROCESSED
?
To be more specific, it would help to know which of the payment_status and status1 combinations are even possible and whats the meaning of each possible status pair?
please see attached table1
Here is the table in text:
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