def get(payment_id): """Get the payment records.""" try: response, status = PaymentService.get_payment(payment_id), HTTPStatus.OK except BusinessException as exception: response, status = {'code': exception.code, 'message': exception.message}, exception.status return jsonify(response), status
def get(payment_id): """Get the payment records.""" try: response, status = PaymentService.get_payment( payment_id), HTTPStatus.OK except BusinessException as exception: return exception.response() return jsonify(response), status