I am new to paypal integration and doing ipn integration right now.
I am a little confused regarding payment_status processed and completed values according to their site.
Completed: The payment has been completed, and the funds have been
added successfully to your account balance.Processed: A payment has been accepted.
Dont really get this?
here are my questions
- if it sends an ipn with payment status processed, will it send
another ipn with payment status completed? - when does it send a processed ipn and when does it send a completed
ipn? - for which status should you consider a item(s) paid for? completed or processed?
thanks in advance
I’m pretty sure the only time you’d see processed is if you send a payment to an account that doesn’t exist yet, or if you send to an account where they have their settings configured to have them accept any payments they receive.
In such a case, when the payment takes place it will have a “status_n” of “unclaimed” and the payment_status would be processed. Note that the n would be the number of the payment in cases where you had more than 1. For example, with MassPay. In fact, here’s a sample I was able to find in my IPN logs…
This particular IPN was from a MassPay request that included only a single receiver. It came back as “processed” and “unclaimed” because the receiver_email didn’t have an existing PayPal account yet.
Here’s a separate IPN for a MassPay request that included 3 receivers and all had accounts, so they all came back as completed.
I don’t have time to setup a scenario where the account doesn’t exist and is then created and accepted, but I’m fairly certain you would indeed get another IPN showing it was completed.
Long story short, I would make sure to look for “completed” as oppose to “processed” when handling post-payment processing.