fixed paypal urls and added error logging