Jump to content
Sign in to follow this  

Fix for PayPal IPN Order State

Recommended Posts

On my site, I accept credit cards and paypal payments. 99.9% of the time, credit card payments go through, so I dont worry about those. Those orders go right to Pending state when received.


For PayPal payments, I always have two concerns

1) if a payment was sent using eCheck, I dont want employees processing them until eCheck is cleared

2) if a payment was received, was it the right amount?


Therefore, I always want to validate paypal payments first. I want all paypal orders redirected to a PayPal state that I've created. Once validated, I move them from PayPal state to Pending State, and for the employees, its business as usual.


To make this fix:


$order_status_id = DEFAULT_ORDERS_STATUS_ID;


change to:


$order_status_id = <your desired state id>;


In my case, PayPal state was orderstate 5, so I used:


$order_status_id = 5;

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this