Fixing syntax and bugs in PaypalHelper