bug 927 - added error checking to paypal and corrected double submit