@thyms added error handling to payment.