Zen Cart Logo
Forums / PayPal Express Checkout support / 1.3.8a IPN testing with SANDBOX

1.3.8a IPN testing with SANDBOX

Locked

Views: 4,696

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
24 Jan 2009, 5:22 PM
#1
brnzn avatar

brnzn

New Zenner

Join Date:
Sep 2008
Posts:
5
Plugin Contributions:
0

1.3.8a IPN testing with SANDBOX

Hi,

I have seen few posts around related to my problem, but didn’t find anything that will make it work.

I am testing zen cart 1.3.8a pointing to the SANDBOX, and I have a problem with the IPN module. Order status is not changing from Pending.

Looking at the IPN logs, I can see this:


Jan 24 2009 9:01 -- Breakpoint: 4 - Details: txn_type=unknown ordersID = 0 IPN_id=0

Relevant data from POST:
txn_type = unknown
parent_txn_id = None
txn_id = 0TN047134C4492205

Jan 24 2009 9:01 -- Breakpoint: 5 - Transaction type (txn_type) = unknown

Jan 24 2009 9:01 -- IPN WARNING :: Could not process for txn type: unknown

The transaction information is retrieved in the method ipn_lookup_transaction in paypal_functions.php. The code default these values as follow:
$ordersID = 0;
$paypalipnID = 0;
$transType = 'unknown';

After retrieving the transaction information, there is a switch case to set the variable transType based on the field pending_reason. In my case the value of pending_reason in the database is ‘paymentreview’, which is not checked in the switch case.

As result of that the order status is not being changed and I get the warning message.

Has anybody seen this before? Why the code is not handling ’payment review’? Is ’payment review’ a valid value? If not why do I get it from Paypal?

Thanks in advance

24 Jan 2009, 5:41 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1.3.8a IPN testing with SANDBOX

"paymentreview" is a status that gets set when you have FMF support enabled in your PayPal account.
Zen Cart hasn't been written to support FMF at the present time.

24 Jan 2009, 6:42 PM
#3
brnzn avatar

brnzn

New Zenner

Join Date:
Sep 2008
Posts:
5
Plugin Contributions:
0

Re: 1.3.8a IPN testing with SANDBOX

Thanks for the quick and very helpful response.

I am surprised I don’t see more posts reporting this problem…

Any idea if it will be implemented in zen cart soon? Maybe someone already added the support for FMF and is willing to share the code?

I was reading you can disable it on the SANBOX but not production. Is that true? If so what do I do?

24 Jan 2009, 6:47 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1.3.8a IPN testing with SANDBOX

It's undecided whether FMF support will be included in v2.0 or not.

25 Jan 2009, 1:17 PM
#5
brnzn avatar

brnzn

New Zenner

Join Date:
Sep 2008
Posts:
5
Plugin Contributions:
0

Re: 1.3.8a IPN testing with SANDBOX

What other zen cart users doing then? Is it not something that affect everyone?

I am not sure what are my options here. Any advice will be great.

Thanks

26 Jan 2009, 3:22 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1.3.8a IPN testing with SANDBOX

Have you subscribed to the PayPal FMF service? If yes, then that will cause your problem because the code doesn't support it yet.

26 Jan 2009, 10:21 PM
#7
brnzn avatar

brnzn

New Zenner

Join Date:
Sep 2008
Posts:
5
Plugin Contributions:
0

Re: 1.3.8a IPN testing with SANDBOX

I didn't sign for FMF, so I understand it will not affect me on production.

Thanks a lot for your help.

5 Aug 2009, 7:21 PM
#8
pjbonarrigo avatar

pjbonarrigo

New Zenner

Join Date:
Jun 2009
Location:
Scottsdale. Arizona, USA
Posts:
36
Plugin Contributions:
0

Re: 1.3.8a IPN testing with SANDBOX

I am using 1.3.8a.
I have integrated the current security patch and admin profile addon.
I am testing with the Paypal Sandbox.

When paypal returns to my store, my order is gone.
The order is not added to customer orders.
It's like my shopping cart choices never existed.
The success page displays the previous order number.

I get the following in the PDT log:

Aug 04 2009 20:03 -- PDT WARNING :: Order not marked as "Completed". Check for Pending reasons or wait for IPN to complete.
[payment_status] => Pending
[pending_reason] => paymentreview

I moved my site from bluehost.com to the my company's dedicated windows server. The bluehost site did not have the security patch or admin profile installed.

When I used the same PayPal sandbox settings on my bluehost site, I receive PDT NOTICE :: Order added: 3 followed by the transaction id and amount. The order was placed in the database.

You talked about Paypal FMF in your replies. I can't find this in the Paypal Sandbox profile.

Any ideas.
I am a newbie and lost.

5 Aug 2009, 7:50 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1.3.8a IPN testing with SANDBOX

pjbonarrigo:

I am testing with the Paypal Sandbox.There are a lot of reasons why we recommend doing store testing with a live account, not a sandbox account.

In this case you have your sandbox account set with "Payment Review" enabled. And, since Zen Cart v1.3.8 and older don't support 'paymentreview' features, it's not able to handle the transaction details being sent back.

You have a couple options:
a) test with your real paypal account, not the sandbox
b) use Express Checkout instead of IPN

5 Aug 2009, 8:17 PM
#10
brnzn avatar

brnzn

New Zenner

Join Date:
Sep 2008
Posts:
5
Plugin Contributions:
0

Re: 1.3.8a IPN testing with SANDBOX

fmf stands for Fraud Management Filters.

I don't remember what I did to solve it. I think I modified the IPN handler.

5 Aug 2009, 8:46 PM
#11
pjbonarrigo avatar

pjbonarrigo

New Zenner

Join Date:
Jun 2009
Location:
Scottsdale. Arizona, USA
Posts:
36
Plugin Contributions:
0

Re: 1.3.8a IPN testing with SANDBOX

The same Zen Cart version tested fine when I had it installed on Bluehost (linux) vs Company Server (windows).
Maybe I changed something in my Paypal sandbox.
I don't recall changing anything.
I can't find anything in Paypal sandbox that allows me to turn on Payment Review.

You said I have the options below.
a) test with your real paypal account, not the sandbox
b) use Express Checkout instead of IPN

Any idea why my Zen Cart store worked with the sandbox before?
I hope your answer isn't because Sandbox wasn't set to payment review before.

Thanks for your guidance.
This is very frustrating.
I appreciate your help and respect your work.
I see your name in the code, drbyte, especially Paypal.

5 Aug 2009, 8:52 PM
#12
pjbonarrigo avatar

pjbonarrigo

New Zenner

Join Date:
Jun 2009
Location:
Scottsdale. Arizona, USA
Posts:
36
Plugin Contributions:
0

Re: 1.3.8a IPN testing with SANDBOX

Oops!
Dr Byte.
I found payment review.
I'll disable and test.
Sorry.