Fix to isPaymentSuccess() in transaction model.