Fixed URL. Refactored paypal code

Fix #20