Refactor Paypal payment system to use Paypal REST SDK.