Added `createPayment` method and cleaned up main class a bit.