Added compatybility with new version of base paypal library.