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.










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.
Leave your response!
Categories
Most Commented
Blogroll
Most Viewed