added functionality for PayPal redirect payments