Paypal "Complete Purchase" button not working

My integration looks correct (I verified the API access on Paypal and Foxycart) but the "Complete Purchase" Button isn't working.

It's on the sandbox account right now. Test card number should be 4242424242424242

Any ideas?
  • lukeluke FoxyCart Team
    When you say "not working" what do you mean? Is there an error or when you click the button does nothing happen? That's a pretty detailed checkout form... pretty incredible. :)

    As for the test card number, PayPal has recently indicated to us that only numbers generated within their sandbox system should be used, so that number may not work as expected. Are you using your own Sandbox account or FoxyCart's?
  • Thanks Luke. I have it on FoxyCart's sandbox account. When I click the button, the page just sits there. No activity. It is the same for Live and Test Servers.
  • lukeluke FoxyCart Team
    It appears you have a JavaScript error on your checkout:
    Error: jQuery("#" + fieldName + "_name").autocompleteArray is not a function
    Source File:
    Line: 656
    Which is probably caused by including the FoxyCart scripts for your site in your template. Those scripts are only for your site, not your cart and checkout templates. Remove these lines and see if that fixes it for you:
    <script src=""; type="text/javascript" charset="utf-8"></script>
    <script src=""; type="text/javascript" charset="utf-8"></script>
  • Thanks Luke! You are brilliant.
  • lukeluke FoxyCart Team
    You're welcome!

    And now my day is complete. Someone called me brilliant. ;-)
Sign In or Register to comment.