in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Please Answer: Error 4020 coming back to PayPalService.cs

Last post 09-16-2008 11:28 PM by dubby. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-18-2008 6:23 AM

    Please Answer: Error 4020 coming back to PayPalService.cs

    Hi

    I am testing in sandbox mode, paypal standard.

    A payment is completed succesfully, execution returns to my dash commerce app, but when /paypal/pdthandler.aspx calls into PayPalService.cs to verify, via PayPal's webservice, that the payment has effectively been made (and not just maliciously appended to the query string) the response is FAIL with error 4020 being cited.

    Looking up on paypal's dev forums, it seems that Error 4020 is returned when paypal cannot read the string passed back.

    I haven't customised anything, other than to input products, so this error has to be:

    1.  A bug in dashComm

    2.  A problem with my paypal sandbox test account pdt numbers etc.

    As far as I can see, there are no probs with my paypal settings.  As they stand, they allow me to Process the Order, go to paypal, pay, return to the site and then hit the rocks. 

    Has anyone else had these problems?

  • 02-18-2008 11:41 AM In reply to

    Re: Please Answer: Error 4020 coming back to PayPalService.cs

    I solved the problem.  The detail of the solution is in a reply to the Known Bugs and Fixes thread.

    Essentially, I think there is a bug when using paypal standard.  In that case, when the paypal standard provider is used to synchronize mysite.com with paypal.com, the Account signature is passed in as the PDT Identity Token, rather than the correct value.  DashCommerce 3.0 Beta does not, to my knowledge, allow you to store the PDT Identity Token in the web.config (via the Control Panel), so the fudge is to hard code the value for your (Sandbox or Live) PDT Id Token where appropriate.

    Details in the bugs and fixes thread.

  • 09-16-2008 11:28 PM In reply to

    • dubby
    • Top 150 Contributor
    • Joined on 03-13-2008
    • Posts 5

    Re: Please Answer: Error 4020 coming back to PayPalService.cs

    Has any progress been made on this?
Page 1 of 1 (3 items)