added paypal logic