Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    5
    Plugin Contributions
    0

    Default 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:

    -----------------------------------------------------------
    [FONT="Courier New"]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
    [/FONT]
    --------------------------------------------------------------

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

    After retrieving the transaction information, there is a switch case to set the variable [FONT="Courier New"]transType[/FONT] based on the field [FONT="Courier New"]pending_reason[/FONT]. In my case the value of [FONT="Courier New"]pending_reason [/FONT]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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2008
    Posts
    5
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 1.3.8a IPN testing with SANDBOX

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2008
    Posts
    5
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jun 2009
    Location
    Scottsdale. Arizona, USA
    Posts
    34
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 1.3.8a IPN testing with SANDBOX

    Quote Originally Posted by pjbonarrigo View Post
    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
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Sep 2008
    Posts
    5
    Plugin Contributions
    0

    Default 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.

  10. #10
    Join Date
    Jun 2009
    Location
    Scottsdale. Arizona, USA
    Posts
    34
    Plugin Contributions
    0

    Default 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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Testing Verisign G5 with sandbox mode
    By incircolo in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 19 Apr 2016, 03:01 AM
  2. testing express with sandbox, error
    By cjnoyes in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 21 Jun 2009, 04:37 PM
  3. Problems with Paypal IPN/Sandbox environment
    By weendog in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 23 Nov 2008, 10:43 AM
  4. Testing with sandbox account
    By AnnMary in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 20 Mar 2008, 04:37 AM
  5. IPN Sandbox testing
    By Darkwind in forum Addon Payment Modules
    Replies: 2
    Last Post: 7 Apr 2007, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg