payment_status value in Paypal Sandbox always pending
I was working with the Paypal sandbox to test a Paypal application for a client. I was using IPN for the payment notification from PayPal so I could update member record on database. While testing I was getting the payment_status value Pending. I played with the sandbox account after I created it, so things might have got messed up. After searching these steps below seem to have solved the problem getting me payment_status value Completed.
1. Login to your Developer Central.
2. Click on Test Accounts tab on the left. You should have created these test accounts for testing on Sandbox.
3. Find the column ‘Payment Review’.
4. Find the sandbox account you are using and click on “Enabled” in the ‘Payment Review’ column.
5. This should change to “Disabled” and now payments funded from your balance and credit card will complete instantly.










(6 votes, average: 4.33 out of 5)
Hi!
But whats happen if in the live,the client don´t have this option on? that can make some problem,no?
@ori
we need to test for both pending and completed status. in live cases we would see the payment status pending for reasons like payment not cleared etc. When paypal payment completes, paypal sends a payment status completed call to the script.
for the live sites on the code we should handle the situation as we like. In my case I did now allow the subscribers access the paid only access part of the website until the system gets payment status completed call from paypal. on the payment page we have put a small note for that.
thanks for tip, I have just testing this and I received pending status for transaction. Thanks for help
glad it helped.
Thanks, this was very helpful. I wish PayPal had included this in their documentation…
When payment status padding paypal send ipn to ipn_url, after payment status completed paypal send ipn to ipu_url again?
Hi,
That was helpful!! I was getting frustrated not able to figure out why the status was pending
Note : The fix is only for sandbox testing not for actual transactions
I changed the Test Accounts type to “Disabled” in “Payment Review” column but i’m still getting pending status on sandbox transaction. Save me……..
I’ve been struggling with this problem for many, many hours! Thanks so much!! I can now finally open my shop!
Leave your response!
Categories
Most Commented
Recent Comments
Blogroll
Most Viewed