finish the paypal pay function