Check PayPal payment status preconditions

Before starting an operation that changes paypal payment state, check the existing state to disallow illegal state transitions.