IPN do not send response for Completed Status - paypal

We have developed a IPN listener and it is successfully receiving responses from Paypal .
Problem : IPN is responding with a payment_status as "Pending" even when the transaction is completed(We crosschecked it in the seller account).
If we are refunding the IPN is responding with proper payment status( Refund ) .
Can anyone tell that what are the points we may be missing as we have to write the core logic only when the payment_status is "Completed".
Note : We are using sandbox paypal.
Any help will be highly appreciated.

It seems like you have turned on the "Payment Review" for your sandbox account due to which the Payment goes into the review status and it gets into the completed within 24 hour . So , if you want the status to come as "completed" you need to login to the developer.paypal.com --> Dashboard --> Sandbox --> Accounts. Click on your sandbox email address --> Profile --> Settings . You will see the option "Payment review" , you need to turn it off .
Once its done you will receive the payment with completed status .
You can refer the screen shot below :
http://content.screencast.com/users/Eshan26Jain/folders/Default/media/bb944b14-ee33-4914-a259-a06790258773/2014-11-13_19-01-05.png

Related

PayPal IPN message is always payment - pending

Working on a sandbox, Paypal will always send me back and IPN message with the pair payment_status:pending.
I know that this might happen due to different currencies and that I can change settings in my account to accept different currencies.
But, I am using the service when a seller and a buyer that I don't know make a transaction, so I can not do anything about it .
Is there a way to allow any currency in the POST request ?
What really the seller see when the payment status is pending ?
If the payment status will change to completed later, how will my IPN message look? there is nothing that says how the object from IPN will look when status is changing ? how can I handle such change ?
Solved by sending money to the sandbox account and not to my real live account.
So, you must send funds from a sandbox email to another sandbox email.
Create another merchant account on the developer website
Send money from a sandbox buyer to a sandbox seller

Getting IPN notification with Txn_Type="recurring_payment_profile_cancel" when User has not cancelled his profile on paypal

Using ManageRecurringPaymentsProfileStatus API, I changed the user profile status to cancel. It worked Fine. But I am also getting IPN notification with Txn_Type="recurring_payment_profile_cancel". User has not cancelled his profile. Did changing the status created this notification?
Yes changing the status of the profile has generated that IPN . As long as the IPN is turn on on the PayPal account or if you had passed the IPN url while creating the recurring profile , PayPal will send you the IPN for any changes on the profiles regardless of how the changes were made ( cancelled by user or by API) .

Will i get an IPN on completion of payment review in Paypal?

I am currently working on a project using PayPal. When I made a transaction, the payment status in the IPN received was 'Pending' and reason was Payment review. I found out that it will take 24 hours for the review process. So I want know if I will get an IPN when the review process is over?
You should get an IPN notification when the transaction changes status. For example, PayPal sends you an IPN notifying you of a pending payment. PayPal later sends you a second IPN telling you that the payment has completed.
Because of security reasons you may get the first IPN with payment status pending But when the payment review is over You will get another IPN with payment status as completed.You can can transfer your stuffs then.The payment review will take maximum 24 hours.

how do I simulate a PENDING response from the paypal IPN for testing purposes?

I need to simulate a PENDING response to my IPN script (php).
Any help on how to configure the sandbox seller account in order to do this would be great!
Note that the IPN testing tool is not sufficient, I actually just need to it to send back a 'pending' notification.
Apologies if this is in the wrong place.
Turn on 'Payment review' on your Sandbox seller account via https://developer.paypal.com/
This will put any new transactions going through this test account in a 'Pending' state.
https://developer.paypal.com/
Test Accounts
Payment Review > Click 'Disabled'
Don't know if PayPal had this back when the question was asked but their IPN simulator is very convenient for testing pending responses and other responses.
https://developer.paypal.com/webapps/developer/applications/ipn_simulator

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