PayPal Sandbox IPN Refund issue - paypal-ipn

I've been testing PayPal payments and received the IPN as expected on my staging/sandbox environment. However I noticed that the IPN for refunds are not being sent. I have verified this against my application as well as the Sandbox business account and the IPN history only shows the payment but not the refunded IPN. The payment history do however reflect the refunded status of the payments.
Can someone tell me if this is an expected behaviour since both the IPN history and the payment records do not tally? Thanks.
This is similar to the issue reported on but there's been no reply since: PayPal refunds not generating IPN anymore

I would advise you to get in touch with the PayPal team to check on this. We will need more information to check on this. You may get back to us via the link below.
https://www.paypal-techsupport.com/app/ask
Thank you.

Related

issues with notify_url in paypal

I am a developer and we have paypal payment sytem integrated with our shop since long.
We have implemented the notify_url paramter in checkout code and was working fine since 4 months back. But now we could see that when a payment is done, we are not notified via the notify_url we specified. But however if we check the url via the IPN simulator, we can see everythign works as expected, but not not notifying automatically when payment is done .
What could be the issue or what all do we need to cross check for this issue to be solved
Did you received any 'PayPal Instant Payment Notification Warning' email from PayPal? This email could be telling you that there's an issue with your IPN URL when PayPal trying to post back the notification to your server, and that could be the reason you didn't receive the notification message from PayPal.
Otherwise, I would recommend you to contact PayPal technical support via https://www.paypal-techsupport.com/app/ask and providing the detail of your PayPal account for them to troubleshoot on this issue.

After setting up PayPal Instant Payment Notification, can I resend the IPN for historic transactions retroactively?

I have just set up PayPal IPN for my website.
https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/
Unfortunately, someone bought my product before the IPN was set up correctly.
Is there a way to apply the IPN notification to a historic transaction from yesterday that did not originally send an IPN?
Login to your account at PayPal, find IPN History, find the transaction: you can resend it from there.
Of course if IPN wasn't enabled when they bought, there is nothing to resend.

Not Receiving PayPal IPN With Invoicing API

On the introduction of PayPal Invoicing API documentation it states that.
PayPal sends IPN messages for invoice payments and for invoices
cancelled by the buyer.
But I've found this is not the case. IPN for invoice payment, cancel or other operation never get sent from PayPal (I have checked and confirmed it from IPN history page).
Worth Mentioning
Invoices are being created via Invoicing API successfully without any warning.
I am working on Sandbox and Creating for Third Party Merchant.
I do understand that paypal doesn't send IPN for api operation changes.
The IPN listener is working fine and I have successful implementation for subscription api with IPN.
Update
Today I tried the whole process with Live PayPal account other than sandbox account and I still not getting any IPN. So, I guess I am doing something wrong or Invoicing API is broken (which I highly doubt).
Which also makes me wonder about some additional questions:
I (merchant #1) has the permission information form merchant #2 for sending invoice to their behalf.
I have setup IPN to my IPN listener URL.
merchant #2 do not have IPN setup to my listener URL.
So, when Invoice that I created for merchant #2, Do I get IPN?
OR, merchant #2 also needs to setup their IPN url pointing to my listener URL?
IPN is get send from the account that receiving payment as #effone mentioned in comment. So, it seems I was confused from paypal documentation.
Answer: The IPN url from merchant #2 will need to setup in order to get notification about invoice payment. merchant #1 account who sending the invoice behalf of merchant #2 will not send any IPN as the payment isn't involves merchant #1
Way I see it, this is not a proper solution to create an invoice management system. As if I have 1000's of user they all need to set their IPN url to mine in order to get the application work correctly (aka, setting invoices as paid when they gets paid)
Your question reads strangely, because you say the IPN is working fine, then in your update, you say you're trying it in your live PayPal account. It sounds like it's working on the Sandbox, but not in production?
If this is the case:
Did you activate the IPN under your Production (Live) Paypal account?
Do you have the IPN URL for this?
Are you seeing the IPN being logged under the Production (Live) PayPal site?
If No -> it's been a while since I've worked with this, but there used to be an interface where you could send an IPN test- have you tried that?
If Yes -> make a bare bones listener- just a page that logs that it was hit, then add logic to it.
hth

Paypal Mass Pay API Response Handling

So this is probably more of a discussion item so I apologise if this should go elsewhere.
But I need to handle Responses (IPN) from using Paypal MassPay API.
At the moment I'm handling the Notifications correctly and tracking past payments made (Royalty Payments System).
Problem 1: Unclaimed Payments
But I've encountered an issue which I can't seem to handle on the sandbox site and that is Unclaimed payments. Now according to MassPay guide:
If the recipients do not have PayPal accounts, PayPal notifies them that a payment is available and they must create a PayPal account to receive the payment.
I assume this means that Paypal sends the user an email, I tried to test this but I received no notification
Problem 2: Claiming unclaimed Payments
Following the previous problem, I've been unable to test users claiming unclaimed values. So I'm wondering does anybody know how Paypal processes these and the format of the response;
Does the response contain all previously claimed payments?
Does the response contain all unclaimed payments?
Does the response contain the status of all transfers in that transaction?
Thank you in advance
When you send out your MassPay request, any unclaimed payments will be pending until they're claimed. Your IPN will show "processed" instead of "completed" for the status. Once they claim the payment you will get another IPN showing the payment has been completed.
When working in the sandbox you won't get any actual emails from their system. All test emails show up in your developer.paypal.com account under the test email section there.

Oscommerce PayPal IPN still Status pending

I'm working with oscommerce and i have problem with Paypal ipn When someone makes a payment, even though the money is coming through OK, on the backend of the website it is saying it is unverified
something like that
: PayPal IPN Verified [Completed (Unverified; $99.90).
I get the email "Notification of payment received" so why is it still pending?
any idea?
Thanks in advance
The "Unverified" there may mean the buyer has not finished the Paypal account/address verification process.
This information is included in the variable payer_status:
Possible Values
verified Customer has a Verified PayPal account.
unverified Customer has an Unverified PayPal account.
Details: https://cms.paypal.com/cms_content/en_US/files/developer/PP_OrderMgmt_IntegrationGuide.pdf
page 52