p2ptrade createPayment refactoring