Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fix for PayPal IPN Order State


wonton

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;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...