finished up the payment functionality. Still need to test