adding in functions for submitting a payment