Fixed a bug that allowed the payment amount to be changed after
attempting to pay.